@@ -21,11 +21,11 @@ import (
2121)
2222
2323/*
24- FeatureVector type represent result of retrieving single feature for multiple rows.
25- It can be imagined as a column in output dataframe / table.
26- It contains of feature name, list of values (across all rows),
27- list of statuses and list of timestamp. All these lists have equal length.
28- And this length is also equal to number of entity rows received in request.
24+ FeatureVector type represent result of retrieving single feature for multiple rows.
25+ It can be imagined as a column in output dataframe / table.
26+ It contains of feature name, list of values (across all rows),
27+ list of statuses and list of timestamp. All these lists have equal length.
28+ And this length is also equal to number of entity rows received in request.
2929*/
3030type FeatureVector struct {
3131 Name string
@@ -40,11 +40,11 @@ type FeatureViewAndRefs struct {
4040}
4141
4242/*
43- We group all features from a single request by entities they attached to.
44- Thus, we will be able to call online retrieval per entity and not per each feature View.
45- In this struct we collect all features and views that belongs to a group.
46- We also store here projected entity keys (only ones that needed to retrieve these features)
47- and indexes to map result of retrieval into output response.
43+ We group all features from a single request by entities they attached to.
44+ Thus, we will be able to call online retrieval per entity and not per each feature View.
45+ In this struct we collect all features and views that belongs to a group.
46+ We also store here projected entity keys (only ones that needed to retrieve these features)
47+ and indexes to map result of retrieval into output response.
4848*/
4949type GroupedFeaturesPerEntitySet struct {
5050 // A list of requested feature references of the form featureViewName:featureName that share this entity set
@@ -59,11 +59,12 @@ type GroupedFeaturesPerEntitySet struct {
5959}
6060
6161/*
62- Return
63- (1) requested feature views and features grouped per View
64- (2) requested on demand feature views
65- existed in the registry
62+ Return
6663
64+ (1) requested feature views and features grouped per View
65+ (2) requested on demand feature views
66+
67+ existed in the registry
6768*/
6869func GetFeatureViewsToUseByService (
6970 featureService * model.FeatureService ,
@@ -124,10 +125,12 @@ func GetFeatureViewsToUseByService(
124125}
125126
126127/*
127- Return
128- (1) requested feature views and features grouped per View
129- (2) requested on demand feature views
130- existed in the registry
128+ Return
129+
130+ (1) requested feature views and features grouped per View
131+ (2) requested on demand feature views
132+
133+ existed in the registry
131134*/
132135func GetFeatureViewsToUseByFeatureRefs (
133136 features []string ,
0 commit comments