feast

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureStore

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

func NewFeatureStore

func NewFeatureStore(config *registry.RepoConfig, callback transformation.TransformationCallback) (*FeatureStore, error)

NewFeatureStore constructs a feature store fat client using the repo config (contents of feature_store.yaml converted to JSON map).

func (*FeatureStore) DestructOnlineStore

func (fs *FeatureStore) DestructOnlineStore()

func (*FeatureStore) GetFcosMap added in v0.21.0

func (*FeatureStore) GetFeatureService

func (fs *FeatureStore) GetFeatureService(name string) (*model.FeatureService, error)

func (*FeatureStore) GetFeatureView

func (fs *FeatureStore) GetFeatureView(featureViewName string, hideDummyEntity bool) (*model.FeatureView, error)

func (*FeatureStore) GetOnlineFeatures

func (fs *FeatureStore) GetOnlineFeatures(
	ctx context.Context,
	featureRefs []string,
	featureService *model.FeatureService,
	joinKeyToEntityValues map[string]*prototypes.RepeatedValue,
	requestData map[string]*prototypes.RepeatedValue,
	fullFeatureNames bool) ([]*onlineserving.FeatureVector, error)

TODO: Review all functions that use ODFV and Request FV since these have not been tested ToDo: Split GetOnlineFeatures interface into two: GetOnlinFeaturesByFeatureService and GetOnlineFeaturesByFeatureRefs

func (*FeatureStore) GetRepoConfig

func (fs *FeatureStore) GetRepoConfig() *registry.RepoConfig

func (*FeatureStore) ListEntities

func (fs *FeatureStore) ListEntities(hideDummyEntity bool) ([]*model.Entity, error)

func (*FeatureStore) ListFeatureViews

func (fs *FeatureStore) ListFeatureViews() ([]*model.FeatureView, error)

func (*FeatureStore) ListOnDemandFeatureViews

func (fs *FeatureStore) ListOnDemandFeatureViews() ([]*model.OnDemandFeatureView, error)

func (*FeatureStore) ListStreamFeatureViews added in v0.22.0

func (fs *FeatureStore) ListStreamFeatureViews() ([]*model.FeatureView, error)

func (*FeatureStore) ParseFeatures

func (fs *FeatureStore) ParseFeatures(kind interface{}) (*Features, error)

ParseFeatures parses the kind field of a GetOnlineFeaturesRequest protobuf message and populates a Features struct with the result.

func (*FeatureStore) Registry

func (fs *FeatureStore) Registry() *registry.Registry

type Features

type Features struct {
	FeaturesRefs   []string
	FeatureService *model.FeatureService
}

A Features struct specifies a list of features to be retrieved from the online store. These features can be specified either as a list of string feature references or as a feature service. String feature references must have format "feature_view:feature", e.g. "customer_fv:daily_transactions".

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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