tablesplitter

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: 9 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GenerateTableName

func GenerateTableName(originalTableName string, columns []string, splitter string, changeItem *abstract.ChangeItem) string

Types

type Config

type Config struct {
	Tables      filter.Tables `json:"tables,omitempty"`
	Columns     []string      `json:"columns,omitempty"`
	Splitter    string        `json:"splitter,omitempty"`
	UseLegacyLF bool          `json:"useLegacyLf,omitempty"`
}

type TableSplitterTransformer

type TableSplitterTransformer struct {
	Tables      filter.Filter
	Columns     []string
	Splitter    string
	UseLegacyLF bool
	Logger      log.Logger
}

func (*TableSplitterTransformer) Apply

func (*TableSplitterTransformer) Description

func (f *TableSplitterTransformer) Description() string

func (*TableSplitterTransformer) ResultSchema

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

func (*TableSplitterTransformer) Suitable

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

func (*TableSplitterTransformer) Type

Jump to

Keyboard shortcuts

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