Documentation ¶
Index ¶
- Constants
- type Config
- type SharderTransformer
- func (f *SharderTransformer) Apply(input []abstract.ChangeItem) abstract.TransformerResult
- func (f *SharderTransformer) Description() string
- func (f *SharderTransformer) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
- func (f *SharderTransformer) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
- func (f *SharderTransformer) Type() abstract.TransformerType
Constants ¶
View Source
const Type = abstract.TransformerType("sharder_transformer")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharderTransformer ¶
type SharderTransformer struct { Columns filter.Filter Tables filter.Filter ShardsNum int64 Logger log.Logger }
func (*SharderTransformer) Apply ¶
func (f *SharderTransformer) Apply(input []abstract.ChangeItem) abstract.TransformerResult
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 ¶
func (f *SharderTransformer) Type() abstract.TransformerType
Click to show internal directories.
Click to hide internal directories.