Documentation
¶
Index ¶
- Constants
- type BackendType
- type CreateEntityOpt
- type CreateFeatureGroupOpt
- type CreateFeatureOpt
- type CsvDataSource
- type Entity
- type EntityList
- type EntityRow
- type ExportFeatureValuesOpt
- type Feature
- type FeatureDataSet
- type FeatureGroup
- type FeatureGroupList
- type FeatureKV
- type FeatureList
- type FeatureValues
- type GetHistoricalFeatureValuesOpt
- type GetOnlineFeatureValuesOpt
- type GetRevisionOpt
- type ImportBatchFeaturesOpt
- type JoinResult
- type ListFeatureOpt
- type MetadataStoreConfig
- type MultiGetOnlineFeatureValuesOpt
- type OfflineStoreConfig
- type OnlineStoreConfig
- type OomStoreConfig
- type PostgresOpt
- type RawFeatureValueRecord
- type RedisOpt
- type Revision
- type RevisionList
- type SyncOpt
- type UpdateEntityOpt
- type UpdateFeatureGroupOpt
- type UpdateFeatureOpt
Constants ¶
View Source
const ( STRING = "string" INT64 = "int64" FLOAT64 = "float64" BOOL = "bool" TIME = "time" BYTES = "bytes" )
View Source
const ( BatchFeatureCategory = "batch" StreamFeatureCategory = "stream" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendType ¶
type BackendType string
const ( POSTGRES BackendType = "postgres" REDIS BackendType = "redis" )
type CreateEntityOpt ¶
type CreateFeatureGroupOpt ¶
type CreateFeatureOpt ¶
type CsvDataSource ¶
type Entity ¶
type EntityList ¶ added in v0.0.2
type EntityList []*Entity
func (EntityList) Copy ¶ added in v0.0.2
func (l EntityList) Copy() EntityList
func (*EntityList) Filter ¶ added in v0.0.2
func (l *EntityList) Filter(filter func(*Entity) bool) (rs EntityList)
type ExportFeatureValuesOpt ¶
type Feature ¶
type Feature struct {
ID int `db:"id"`
Name string `db:"name"`
ValueType string `db:"value_type"`
DBValueType string `db:"db_value_type"`
Description string `db:"description"`
CreateTime time.Time `db:"create_time"`
ModifyTime time.Time `db:"modify_time"`
GroupID int `db:"group_id"`
Group *FeatureGroup
}
func (*Feature) OnlineRevisionID ¶
type FeatureDataSet ¶
func NewFeatureDataSet ¶
func NewFeatureDataSet() FeatureDataSet
type FeatureGroup ¶
type FeatureGroup struct {
ID int `db:"id"`
Name string `db:"name"`
Category string `db:"category"`
Description string `db:"description"`
CreateTime time.Time `db:"create_time"`
ModifyTime time.Time `db:"modify_time"`
EntityID int `db:"entity_id"`
OnlineRevisionID *int `db:"online_revision_id"`
Entity *Entity
}
func (*FeatureGroup) Copy ¶ added in v0.0.2
func (fg *FeatureGroup) Copy() *FeatureGroup
func (*FeatureGroup) String ¶
func (fg *FeatureGroup) String() string
type FeatureGroupList ¶ added in v0.0.2
type FeatureGroupList []*FeatureGroup
func (FeatureGroupList) Copy ¶ added in v0.0.2
func (l FeatureGroupList) Copy() FeatureGroupList
func (*FeatureGroupList) Filter ¶ added in v0.0.2
func (l *FeatureGroupList) Filter(filter func(*FeatureGroup) bool) (rs FeatureGroupList)
func (*FeatureGroupList) Find ¶ added in v0.0.2
func (l *FeatureGroupList) Find(find func(*FeatureGroup) bool) *FeatureGroup
type FeatureKV ¶
type FeatureKV struct {
FeatureName string
FeatureValue interface{}
}
func NewFeatureKV ¶
type FeatureList ¶
type FeatureList []*Feature
func (FeatureList) Copy ¶ added in v0.0.2
func (l FeatureList) Copy() FeatureList
func (*FeatureList) Filter ¶
func (l *FeatureList) Filter(filter func(*Feature) bool) (rs FeatureList)
func (*FeatureList) Find ¶ added in v0.0.2
func (l *FeatureList) Find(find func(*Feature) bool) *Feature
func (*FeatureList) Ids ¶
func (l *FeatureList) Ids() (ids []int)
func (*FeatureList) Len ¶
func (l *FeatureList) Len() int
func (*FeatureList) Names ¶
func (l *FeatureList) Names() (names []string)
type FeatureValues ¶ added in v0.0.2
type FeatureValues struct {
EntityName string
EntityKey string
FeatureNames []string
FeatureValueMap map[string]interface{}
}
func (*FeatureValues) FeatureValueSlice ¶ added in v0.0.2
func (fv *FeatureValues) FeatureValueSlice() []interface{}
type GetRevisionOpt ¶ added in v0.0.2
type ImportBatchFeaturesOpt ¶
type ImportBatchFeaturesOpt struct {
GroupID int
Description string
DataSource CsvDataSource
Revision *int64
}
type JoinResult ¶ added in v0.0.2
type JoinResult struct {
Header []string
Data <-chan []interface{}
}
type ListFeatureOpt ¶
type MetadataStoreConfig ¶
type MetadataStoreConfig struct {
Backend BackendType `yaml:"backend"`
Postgres *PostgresOpt `yaml:"postgres"`
}
type OfflineStoreConfig ¶
type OfflineStoreConfig struct {
Backend BackendType `yaml:"backend"`
Postgres *PostgresOpt `yaml:"postgres"`
}
type OnlineStoreConfig ¶
type OnlineStoreConfig struct {
Backend BackendType `yaml:"backend"`
Postgres *PostgresOpt `yaml:"postgres"`
Redis *RedisOpt `yaml:"redis"`
}
type OomStoreConfig ¶
type OomStoreConfig struct {
MetadataStore MetadataStoreConfig `yaml:"metadata-store"`
OfflineStore OfflineStoreConfig `yaml:"offline-store"`
OnlineStore OnlineStoreConfig `yaml:"online-store"`
}
type PostgresOpt ¶
type RawFeatureValueRecord ¶
type RawFeatureValueRecord struct {
Record []interface{}
Error error
}
func (*RawFeatureValueRecord) EntityKey ¶
func (r *RawFeatureValueRecord) EntityKey() string
func (*RawFeatureValueRecord) ValueAt ¶
func (r *RawFeatureValueRecord) ValueAt(i int) interface{}
type Revision ¶
type Revision struct {
ID int `db:"id"`
Revision int64 `db:"revision"`
DataTable string `db:"data_table"`
Anchored bool `db:"anchored"`
Description string `db:"description"`
CreateTime time.Time `db:"create_time"`
ModifyTime time.Time `db:"modify_time"`
GroupID int `db:"group_id"`
Group *FeatureGroup
}
type RevisionList ¶ added in v0.0.2
type RevisionList []*Revision
func (RevisionList) Copy ¶ added in v0.0.2
func (l RevisionList) Copy() RevisionList
func (*RevisionList) Filter ¶ added in v0.0.2
func (l *RevisionList) Filter(filter func(*Revision) bool) (rs RevisionList)
type UpdateEntityOpt ¶
type UpdateFeatureGroupOpt ¶
type UpdateFeatureOpt ¶
Click to show internal directories.
Click to hide internal directories.