sharder

package
v0.0.0-rc13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Type = abstract.TransformerType("sharder_transformer")

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Columns     filter.Columns `json:"columns"`
	Tables      filter.Tables  `json:"tables"`
	ShardsCount string         `json:"shardsCount"`
}

type SharderTransformer

type SharderTransformer struct {
	Columns   filter.Filter
	Tables    filter.Filter
	ShardsNum int64
	Logger    log.Logger
}

func (*SharderTransformer) Apply

func (*SharderTransformer) Description

func (f *SharderTransformer) Description() string

func (*SharderTransformer) ResultSchema

func (f *SharderTransformer) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)

func (*SharderTransformer) Suitable

func (f *SharderTransformer) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool

func (*SharderTransformer) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL