model

package
v2.1.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultSourceTuple

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

func NewDefaultRawTuple

func NewDefaultRawTuple(raw []byte, meta map[string]any, ts time.Time) *DefaultSourceTuple

NewDefaultRawTuple creates a new DefaultSourceTuple with raw data. Use this when extend source connector

func NewDefaultRawTupleIgnoreTs

func NewDefaultRawTupleIgnoreTs(raw []byte, meta map[string]any) *DefaultSourceTuple

func NewDefaultSourceTuple

func NewDefaultSourceTuple(message map[string]any, meta map[string]any, timestamp time.Time) *DefaultSourceTuple

func (*DefaultSourceTuple) AllMeta

func (t *DefaultSourceTuple) AllMeta() map[string]any

func (*DefaultSourceTuple) Meta

func (t *DefaultSourceTuple) Meta(key, table string) (any, bool)

func (*DefaultSourceTuple) Range

func (t *DefaultSourceTuple) Range(f func(key string, value any) bool)

func (*DefaultSourceTuple) Raw

func (t *DefaultSourceTuple) Raw() []byte

func (*DefaultSourceTuple) Timestamp

func (t *DefaultSourceTuple) Timestamp() time.Time

func (*DefaultSourceTuple) ToMap

func (t *DefaultSourceTuple) ToMap() map[string]any

func (*DefaultSourceTuple) Value

func (t *DefaultSourceTuple) Value(key, table string) (any, bool)

type InfoNode

type InfoNode interface {
	Info() NodeInfo
	TransformType() api.Source
}

InfoNode explain the node itself. Mainly used for planner to decide the split of source/sink

type NodeInfo

type NodeInfo struct {
	NeedDecode      bool
	NeedBatchDecode bool // like decrypt, decompress as a whole
	HasCompress     bool
	HasInterval     bool
}

type StreamReader

type StreamReader interface {
	CreateWriter(ctx api.StreamContext, currWriter io.Writer, compression string, encryption string) (io.Writer, error)
}

type StreamWriter

type StreamWriter interface {
	CreateWriter(ctx api.StreamContext, currWriter io.Writer, compression string, encryption string) (io.Writer, error)
}

type UniqueConn

type UniqueConn interface {
	ConnId(props map[string]any) string
}

type UniqueSub

type UniqueSub interface {
	SubId(props map[string]any) string
}

Jump to

Keyboard shortcuts

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