Documentation
¶
Index ¶
- Constants
- func FeatureCsvHeader() string
- type BackendType
- type CreateEntityOpt
- type CreateFeatureGroupOpt
- type CreateFeatureOpt
- type CsvDataSource
- type Entity
- type EntityRow
- type EntityRowWithFeatures
- type ExportFeatureValuesOpt
- type Feature
- type FeatureDataSet
- type FeatureGroup
- type FeatureKV
- type FeatureList
- type FeatureValueMap
- type GetHistoricalFeatureValuesOpt
- type GetOnlineFeatureValuesOpt
- type ImportBatchFeaturesOpt
- type ListFeatureOpt
- type MaterializeOpt
- type MetadataStoreConfig
- type MultiGetOnlineFeatureValuesOpt
- type OfflineStoreConfig
- type OnlineStoreConfig
- type OomStoreConfig
- type PostgresOpt
- type RawFeatureValueRecord
- type RedisOpt
- type Revision
- type RevisionRange
- type UpdateEntityOpt
- type UpdateFeatureGroupOpt
- type UpdateFeatureOpt
Constants ¶
View Source
const ( BatchFeatureCategory = "batch" StreamFeatureCategory = "stream" )
View Source
const ( STRING = "string" INT8 = "int8" INT16 = "int16" INT32 = "int32" INT64 = "int64" FLOAT32 = "float32" FLOAT64 = "float64" BOOL = "bool" TIME = "time" BYTE_ARRAY = "byte_array" )
Variables ¶
This section is empty.
Functions ¶
func FeatureCsvHeader ¶
func FeatureCsvHeader() string
Types ¶
type BackendType ¶
type BackendType string
const ( POSTGRES BackendType = "postgres" REDIS BackendType = "redis" )
type CreateEntityOpt ¶
type CreateFeatureGroupOpt ¶
type CreateFeatureOpt ¶
type CsvDataSource ¶
type Entity ¶
type EntityRowWithFeatures ¶
type ExportFeatureValuesOpt ¶
type Feature ¶
type Feature struct {
ID int16 `db:"id"`
Name string `db:"name"`
GroupName string `db:"group_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"`
EntityName string `db:"entity_name"`
Category string `db:"category"`
OnlineRevisionID *int32 `db:"online_revision_id"`
OnlineRevision *int64 `db:"online_revision"`
OfflineRevision *int64 `db:"offline_revision"`
OfflineDataTable *string `db:"offline_data_table"`
}
func (*Feature) ToCsvRecord ¶
type FeatureDataSet ¶
func NewFeatureDataSet ¶
func NewFeatureDataSet() FeatureDataSet
type FeatureGroup ¶
type FeatureGroup struct {
ID int16 `db:"id"`
Name string `db:"name"`
EntityName string `db:"entity_name"`
OnlineRevisionID *int32 `db:"online_revision_id"`
Category string `db:"category"`
Description string `db:"description"`
CreateTime time.Time `db:"create_time"`
ModifyTime time.Time `db:"modify_time"`
OnlineRevision *int64 `db:"online_revision"`
OfflineRevision *int64 `db:"offline_revision"`
OfflineDataTable *string `db:"offline_data_table"`
}
func (*FeatureGroup) String ¶
func (fg *FeatureGroup) String() string
type FeatureKV ¶
type FeatureKV struct {
FeatureName string
FeatureValue interface{}
}
func NewFeatureKV ¶
type FeatureList ¶
type FeatureList []*Feature
func (*FeatureList) Filter ¶
func (l *FeatureList) Filter(filter func(f *Feature) bool) (rs FeatureList)
func (*FeatureList) Ids ¶
func (l *FeatureList) Ids() (ids []int16)
func (*FeatureList) Len ¶
func (l *FeatureList) Len() int
func (*FeatureList) Names ¶
func (l *FeatureList) Names() (names []string)
type FeatureValueMap ¶
type FeatureValueMap map[string]interface{}
type ImportBatchFeaturesOpt ¶
type ImportBatchFeaturesOpt struct {
GroupName string
Description string
DataSource CsvDataSource
}
type ListFeatureOpt ¶
type MaterializeOpt ¶
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 RevisionRange ¶
type UpdateEntityOpt ¶
type UpdateFeatureGroupOpt ¶
type UpdateFeatureOpt ¶
Click to show internal directories.
Click to hide internal directories.