model

package
v0.37.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DUMMY_ENTITY_ID   = "__dummy_id"
	DUMMY_ENTITY_NAME = "__dummy"
	DUMMY_ENTITY_VAL  = ""
)

Variables

View Source
var DUMMY_ENTITY_VALUE types.Value = types.Value{Val: &types.Value_StringVal{StringVal: DUMMY_ENTITY_VAL}}

Functions

This section is empty.

Types

type BaseFeatureView

type BaseFeatureView struct {
	Name       string
	Features   []*Field
	Projection *FeatureViewProjection
}

func NewBaseFeatureView

func NewBaseFeatureView(name string, featureProtos []*core.FeatureSpecV2) *BaseFeatureView

func (*BaseFeatureView) ProjectWithFeatures

func (fv *BaseFeatureView) ProjectWithFeatures(featureNames []string) *FeatureViewProjection

func (*BaseFeatureView) WithProjection

func (fv *BaseFeatureView) WithProjection(projection *FeatureViewProjection) (*BaseFeatureView, error)

type Entity

type Entity struct {
	Name    string
	JoinKey string
}

func NewEntityFromProto

func NewEntityFromProto(proto *core.Entity) *Entity

type FeatureService

type FeatureService struct {
	Name                 string
	Project              string
	CreatedTimestamp     *timestamppb.Timestamp
	LastUpdatedTimestamp *timestamppb.Timestamp
	Projections          []*FeatureViewProjection
	LoggingConfig        *FeatureServiceLoggingConfig
}

func NewFeatureServiceFromProto

func NewFeatureServiceFromProto(proto *core.FeatureService) *FeatureService

type FeatureServiceLoggingConfig added in v0.21.0

type FeatureServiceLoggingConfig struct {
	SampleRate float32
}

type FeatureView

type FeatureView struct {
	Base          *BaseFeatureView
	Ttl           *durationpb.Duration
	EntityNames   []string
	EntityColumns []*Field
}

func NewFeatureViewFromProto

func NewFeatureViewFromProto(proto *core.FeatureView) *FeatureView

func NewFeatureViewFromStreamFeatureViewProto added in v0.22.0

func NewFeatureViewFromStreamFeatureViewProto(proto *core.StreamFeatureView) *FeatureView

func (*FeatureView) HasEntity

func (fv *FeatureView) HasEntity(name string) bool

func (*FeatureView) NewFeatureViewFromBase

func (fv *FeatureView) NewFeatureViewFromBase(base *BaseFeatureView) *FeatureView

type FeatureViewProjection

type FeatureViewProjection struct {
	Name       string
	NameAlias  string
	Features   []*Field
	JoinKeyMap map[string]string
}

func NewFeatureViewProjectionFromDefinition

func NewFeatureViewProjectionFromDefinition(base *BaseFeatureView) *FeatureViewProjection

func NewFeatureViewProjectionFromProto

func NewFeatureViewProjectionFromProto(proto *core.FeatureViewProjection) *FeatureViewProjection

func (*FeatureViewProjection) NameToUse

func (fv *FeatureViewProjection) NameToUse() string

type Field added in v0.22.0

type Field struct {
	Name  string
	Dtype types.ValueType_Enum
}

func NewFieldFromProto added in v0.22.0

func NewFieldFromProto(proto *core.FeatureSpecV2) *Field

type OnDemandFeatureView

type OnDemandFeatureView struct {
	Base                         *BaseFeatureView
	SourceFeatureViewProjections map[string]*FeatureViewProjection
	SourceRequestDataSources     map[string]*core.DataSource_RequestDataOptions
}

func NewOnDemandFeatureViewFromBase

func NewOnDemandFeatureViewFromBase(base *BaseFeatureView) *OnDemandFeatureView

func NewOnDemandFeatureViewFromProto

func NewOnDemandFeatureViewFromProto(proto *core.OnDemandFeatureView) *OnDemandFeatureView

func (*OnDemandFeatureView) GetRequestDataSchema

func (fs *OnDemandFeatureView) GetRequestDataSchema() map[string]types.ValueType_Enum

func (*OnDemandFeatureView) NewWithProjection

func (fs *OnDemandFeatureView) NewWithProjection(projection *FeatureViewProjection) (*OnDemandFeatureView, error)

func (*OnDemandFeatureView) ProjectWithFeatures

func (fs *OnDemandFeatureView) ProjectWithFeatures(featureNames []string) (*OnDemandFeatureView, error)

Jump to

Keyboard shortcuts

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