Documentation ¶
Index ¶
- Constants
- Variables
- type BaseFeatureView
- type Entity
- type Feature
- type FeatureService
- type FeatureServiceLoggingConfig
- type FeatureView
- type FeatureViewProjection
- type OnDemandFeatureView
- func (fs *OnDemandFeatureView) GetRequestDataSchema() map[string]types.ValueType_Enum
- func (fs *OnDemandFeatureView) NewWithProjection(projection *FeatureViewProjection) (*OnDemandFeatureView, error)
- func (fs *OnDemandFeatureView) ProjectWithFeatures(featureNames []string) (*OnDemandFeatureView, error)
Constants ¶
View Source
const ( DUMMY_ENTITY_ID = "__dummy_id" DUMMY_ENTITY_NAME = "__dummy" DUMMY_ENTITY_VAL = "" )
Variables ¶
View Source
var DUMMY_ENTITY 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 []*Feature 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 ValueType types.ValueType_Enum JoinKey string }
func NewEntityFromProto ¶
type Feature ¶
type Feature struct { Name string Dtype types.ValueType_Enum }
func NewFeatureFromProto ¶
func NewFeatureFromProto(proto *core.FeatureSpecV2) *Feature
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 Entities []string }
func NewFeatureViewFromProto ¶
func NewFeatureViewFromProto(proto *core.FeatureView) *FeatureView
func (*FeatureView) HasEntity ¶
func (fs *FeatureView) HasEntity(lookup string) bool
func (*FeatureView) NewFeatureViewFromBase ¶
func (fs *FeatureView) NewFeatureViewFromBase(base *BaseFeatureView) *FeatureView
type FeatureViewProjection ¶
type FeatureViewProjection struct { Name string NameAlias string Features []*Feature 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 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)
Click to show internal directories.
Click to hide internal directories.