rawdocgrouper

package
v0.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const RawCdcDocGrouperTransformerType = abstract.TransformerType("raw_cdc_doc_grouper")
View Source
const (
	RawDocGrouperTransformerType = abstract.TransformerType("raw_doc_grouper")
)

Variables

This section is empty.

Functions

func CollectFieldsForTransformer

func CollectFieldsForTransformer(fields []string, columns abstract.TableColumns, isKey bool, colNameToIdx map[string]int,
	fieldsMap map[string]schema.Type) []abstract.ColSchema

func MakeStubFieldWithOriginalType

func MakeStubFieldWithOriginalType(colName string, ytType schema.Type, primaryKey bool, original abstract.TableColumns) abstract.ColSchema

Types

type CdcHistoryGroupTransformer

type CdcHistoryGroupTransformer struct {
	Tables filter.Filter
	Keys   []string
	Fields []string
	// contains filtered or unexported fields
}

func NewCdcHistoryGroupTransformer

func NewCdcHistoryGroupTransformer(config RawCDCDocGrouperConfig) (*CdcHistoryGroupTransformer, error)

func (*CdcHistoryGroupTransformer) Apply

func (*CdcHistoryGroupTransformer) Description

func (r *CdcHistoryGroupTransformer) Description() string

func (*CdcHistoryGroupTransformer) ResultSchema

func (*CdcHistoryGroupTransformer) Suitable

func (*CdcHistoryGroupTransformer) Type

type RawCDCDocGrouperConfig

type RawCDCDocGrouperConfig struct {
	Tables filter.Tables `json:"tables"`
	Keys   []string      `json:"keys"`
	Fields []string      `json:"fields"`
}

type RawDocGroupTransformer

type RawDocGroupTransformer struct {
	Tables filter.Filter
	Keys   []string
	Fields []string
	// contains filtered or unexported fields
}

func NewRawDocGroupTransformer

func NewRawDocGroupTransformer(config RawDocGrouperConfig) (*RawDocGroupTransformer, error)

func (*RawDocGroupTransformer) Apply

func (*RawDocGroupTransformer) Description

func (r *RawDocGroupTransformer) Description() string

func (*RawDocGroupTransformer) ResultSchema

func (r *RawDocGroupTransformer) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)

func (*RawDocGroupTransformer) Suitable

func (r *RawDocGroupTransformer) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool

func (*RawDocGroupTransformer) Type

type RawDocGrouperConfig

type RawDocGrouperConfig struct {
	Tables filter.Tables `json:"tables"`
	Keys   []string      `json:"keys"`
	Fields []string      `json:"fields"`
}

Jump to

Keyboard shortcuts

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