test

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpInitializedRepo

func CleanUpInitializedRepo(basePath string)

func CreateBaseFeatureView

func CreateBaseFeatureView(name string, features []*model.Field, projection *model.FeatureViewProjection) *model.BaseFeatureView

func CreateFeatureView

func CreateFeatureView(base *model.BaseFeatureView, ttl *durationpb.Duration, entities []string, entityColumns []*model.Field) *model.FeatureView

func CreateNewEntity

func CreateNewEntity(name string, joinKey string) *model.Entity

func CreateNewFeatureService

func CreateNewFeatureService(name string, project string, createdTimestamp *timestamppb.Timestamp, lastUpdatedTimestamp *timestamppb.Timestamp, projections []*model.FeatureViewProjection) *model.FeatureService

func CreateNewFeatureViewProjection

func CreateNewFeatureViewProjection(name string, nameAlias string, features []*model.Field, joinKeyMap map[string]string) *model.FeatureViewProjection

func CreateNewField added in v0.22.0

func CreateNewField(name string, dtype types.ValueType_Enum) *model.Field

func GetLatestFeatures

func GetLatestFeatures(Rows []*Row, entities map[int64]bool) map[int64]*Row

func GetProtoFromRecord

func GetProtoFromRecord(rec arrow.Record) (map[string]*types.RepeatedValue, error)

func SetupCleanFeatureRepo

func SetupCleanFeatureRepo(basePath string) error

func SetupInitializedRepo

func SetupInitializedRepo(basePath string) error

Types

type Row

type Row struct {
	EventTimestamp int64
	DriverId       int64
	ConvRate       float32
	AccRate        float32
	AvgDailyTrips  int32
	Created        int64
}

func ReadParquet

func ReadParquet(filePath string) ([]*Row, error)

Jump to

Keyboard shortcuts

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