transform

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntegrationActionType_Append          domain.IntegrationActionType = "append"
	IntegrationActionType_InnerJoin       domain.IntegrationActionType = "inner_join"
	IntegrationActionType_OuterJoin       domain.IntegrationActionType = "outer_join"
	IntegrationActionType_LeftJoin        domain.IntegrationActionType = "left_join"
	IntegrationActionType_RightJoin       domain.IntegrationActionType = "right_join"
	IntegrationActionType_ExcludeMatching domain.IntegrationActionType = "exclude_matching"
)

Variables

View Source
var (
	Schema = schema
)

Functions

func NewTransformIntegrationCreator added in v0.0.12

func NewTransformIntegrationCreator(deps domain.IntegrationDeps) domain.IntegrationCreator

Types

type Access added in v0.0.12

type Access interface {
	Apply(data any) (any, error)
}

type FieldAccess added in v0.0.12

type FieldAccess struct {
	Name string
}

func (FieldAccess) Apply added in v0.0.12

func (f FieldAccess) Apply(data any) (any, error)

type FieldPathParser added in v0.0.12

type FieldPathParser struct{}

func NewFieldPathParser added in v0.0.12

func NewFieldPathParser() *FieldPathParser

func (*FieldPathParser) DeleteValue added in v0.0.32

func (p *FieldPathParser) DeleteValue(data any, fieldPath string) error

func (*FieldPathParser) GetValue added in v0.0.12

func (p *FieldPathParser) GetValue(data any, fieldPath string) (any, error)

func (*FieldPathParser) SetValue added in v0.0.32

func (p *FieldPathParser) SetValue(data any, fieldPath string, value any) error

type IndexAccess added in v0.0.12

type IndexAccess struct {
	Index int
}

func (IndexAccess) Apply added in v0.0.12

func (i IndexAccess) Apply(data any) (any, error)

type JoinCriteria added in v0.0.12

type JoinCriteria struct {
	LeftFieldKey  string `json:"left_field_key"`
	RightFieldKey string `json:"right_field_key"`
}

type JoinParams added in v0.0.12

type JoinParams struct {
	Criteria         []JoinCriteria `json:"criteria"`
	HandleCollisions bool           `json:"handle_collisions"`
}

type Segment added in v0.0.12

type Segment struct {
	Accesses []Access
}

func (Segment) Apply added in v0.0.12

func (s Segment) Apply(data any) (any, error)

type TransformIntegration added in v0.0.12

type TransformIntegration struct {
	// contains filtered or unexported fields
}

func NewTransformIntegration added in v0.0.12

func NewTransformIntegration(deps TransformIntegrationDependencies) (*TransformIntegration, error)

func (*TransformIntegration) AppendStreams added in v0.0.12

func (i *TransformIntegration) AppendStreams(ctx context.Context, params domain.IntegrationInput, itemsByInput [][]domain.Item) ([]domain.Item, error)

func (*TransformIntegration) Execute added in v0.0.12

func (*TransformIntegration) InnerJoin added in v0.0.12

func (i *TransformIntegration) InnerJoin(ctx context.Context, params domain.IntegrationInput, itemsByInput [][]domain.Item) ([]domain.Item, error)

func (*TransformIntegration) LeftJoin added in v0.0.12

func (i *TransformIntegration) LeftJoin(ctx context.Context, params domain.IntegrationInput, itemsByInput [][]domain.Item) ([]domain.Item, error)

func (*TransformIntegration) OuterJoin added in v0.0.12

func (i *TransformIntegration) OuterJoin(ctx context.Context, params domain.IntegrationInput, itemsByInput [][]domain.Item) ([]domain.Item, error)

func (*TransformIntegration) ReverseInnerJoin added in v0.0.12

func (i *TransformIntegration) ReverseInnerJoin(ctx context.Context, params domain.IntegrationInput, itemsByInput [][]domain.Item) ([]domain.Item, error)

func (*TransformIntegration) RightJoin added in v0.0.12

func (i *TransformIntegration) RightJoin(ctx context.Context, params domain.IntegrationInput, itemsByInput [][]domain.Item) ([]domain.Item, error)

type TransformIntegrationCreator added in v0.0.12

type TransformIntegrationCreator struct {
	// contains filtered or unexported fields
}

func (*TransformIntegrationCreator) CreateIntegration added in v0.0.12

type TransformIntegrationDependencies added in v0.0.12

type TransformIntegrationDependencies struct {
	ParameterBinder domain.IntegrationParameterBinder
}

Jump to

Keyboard shortcuts

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