offline

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportOpt

type ExportOpt struct {
	DataTable    string
	EntityName   string
	FeatureNames []string
	Limit        *uint64
}

type ImportOpt

type ImportOpt struct {
	Entity        *types.Entity
	Features      types.FeatureList
	Header        []string
	Revision      *int64
	DataTableName string

	// CsvReader must not contain header
	CsvReader *csv.Reader
}

type JoinOneFeatureGroupOpt added in v0.0.2

type JoinOneFeatureGroupOpt struct {
	GroupName           string
	Features            types.FeatureList
	RevisionRanges      []*metadata.RevisionRange
	Entity              types.Entity
	EntityRowsTableName string
}

type JoinOpt

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

type Store

type Store interface {
	Join(ctx context.Context, opt JoinOpt) (*types.JoinResult, error)
	Export(ctx context.Context, opt ExportOpt) (<-chan *types.RawFeatureValueRecord, error)
	Import(ctx context.Context, opt ImportOpt) (int64, error)

	TypeTag(dbType string) (string, error)
	io.Closer
}

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