offline

package
v0.1.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 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 CSVSource added in v0.0.4

type CSVSource struct {
	Reader    *bufio.Reader
	Delimiter rune
}

type CreateTableOpt added in v0.0.4

type CreateTableOpt struct {
	TableName  string
	EntityName string
	Features   types.FeatureList
	TableType  types.TableType
}

type ExportOpt

type ExportOpt struct {
	SnapshotTables map[int]string
	CdcTables      map[int]string
	Features       map[int]types.FeatureList
	UnixMilli      int64
	EntityName     string
	Limit          *uint64
}

type ImportOpt

type ImportOpt struct {
	EntityName        string
	SnapshotTableName string
	Header            []string
	Features          types.FeatureList
	Revision          *int64
	Source            *CSVSource
	Category          types.Category
}

type JoinOpt

type JoinOpt struct {
	EntityName       string
	EntityRows       <-chan types.EntityRow
	GroupNames       []string
	FeatureMap       map[string]types.FeatureList
	RevisionRangeMap map[string][]*RevisionRange
	ValueNames       []string
}

type PushOpt added in v0.0.4

type PushOpt struct {
	GroupID      int
	Revision     int64
	EntityName   string
	FeatureNames []string
	Records      []types.StreamRecord
}

type RevisionRange added in v0.0.4

type RevisionRange struct {
	MinRevision   int64
	MaxRevision   int64
	SnapshotTable string
	CdcTable      string
}

type SnapshotOpt added in v0.0.4

type SnapshotOpt struct {
	Group        types.Group
	Features     types.FeatureList
	Revision     int64
	PrevRevision int64
}

type Store

type Store interface {
	Join(ctx context.Context, opt JoinOpt) (*types.JoinResult, error)
	Export(ctx context.Context, opt ExportOpt) (*types.ExportResult, error)
	Import(ctx context.Context, opt ImportOpt) (int64, error)
	Push(ctx context.Context, opt PushOpt) error

	CreateTable(ctx context.Context, opt CreateTableOpt) error
	TableSchema(ctx context.Context, opt TableSchemaOpt) (*types.DataTableSchema, error)
	Snapshot(ctx context.Context, opt SnapshotOpt) error

	Ping(ctx context.Context) error
	io.Closer
}

type TableSchemaOpt added in v0.1.0

type TableSchemaOpt struct {
	TableName      string
	CheckTimeRange bool
}

Directories

Path Synopsis
Package mock_offline is a generated GoMock package.
Package mock_offline is a generated GoMock package.

Jump to

Keyboard shortcuts

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