23
23
import com .logicalclocks .hsfs .spark .engine .SparkEngine ;
24
24
import com .logicalclocks .hsfs .FeatureStoreBase ;
25
25
import com .logicalclocks .hsfs .FeatureStoreException ;
26
+ import com .logicalclocks .hsfs .OnlineConfig ;
26
27
import com .logicalclocks .hsfs .StatisticsConfig ;
27
28
import com .logicalclocks .hsfs .StorageConnector ;
28
29
import com .logicalclocks .hsfs .TimeTravelFormat ;
@@ -176,7 +177,7 @@ public FeatureGroup.FeatureGroupBuilder createFeatureGroup() {
176
177
@ Override
177
178
public FeatureGroup getOrCreateFeatureGroup (String name , Integer version ) throws IOException , FeatureStoreException {
178
179
return featureGroupEngine .getOrCreateFeatureGroup (this , name , version , null , null ,
179
- null , null , false , null , null , null , null , null );
180
+ null , null , false , null , null , null , null , null , null );
180
181
}
181
182
182
183
/**
@@ -210,7 +211,7 @@ public FeatureGroup getOrCreateFeatureGroup(String name, Integer version, List<S
210
211
boolean onlineEnabled , String eventTime )
211
212
throws IOException , FeatureStoreException {
212
213
return featureGroupEngine .getOrCreateFeatureGroup (this , name , version , null , primaryKeys ,
213
- null , null , onlineEnabled , null , null , null , null , eventTime );
214
+ null , null , onlineEnabled , null , null , null , null , eventTime , null );
214
215
}
215
216
216
217
/**
@@ -249,7 +250,7 @@ public FeatureGroup getOrCreateFeatureGroup(String name, Integer version,
249
250
String eventTime ) throws IOException , FeatureStoreException {
250
251
251
252
return featureGroupEngine .getOrCreateFeatureGroup (this , name , version , null , primaryKeys ,
252
- partitionKeys , null , onlineEnabled , null , null , null , null , eventTime );
253
+ partitionKeys , null , onlineEnabled , null , null , null , null , eventTime , null );
253
254
}
254
255
255
256
/**
@@ -290,6 +291,7 @@ public FeatureGroup getOrCreateFeatureGroup(String name, Integer version,
290
291
* @param eventTime Name of the feature containing the event time for the features in this feature group. If
291
292
* eventTime is set the feature group can be used for point-in-time joins.
292
293
* The supported data types for the eventTime column are: timestamp, date and bigint
294
+ * @param onlineConfig Optionally, define configuration which is used to configure online table.
293
295
* @return FeatureGroup: The feature group metadata object.
294
296
* @throws IOException Generic IO exception.
295
297
* @throws FeatureStoreException If unable to retrieve FeatureGroup from the feature store.
@@ -299,12 +301,13 @@ public FeatureGroup getOrCreateFeatureGroup(String name, Integer version, String
299
301
List <String > primaryKeys , List <String > partitionKeys ,
300
302
String hudiPrecombineKey , boolean onlineEnabled ,
301
303
TimeTravelFormat timeTravelFormat , StatisticsConfig statisticsConfig ,
302
- String topicName , String notificationTopicName , String eventTime )
304
+ String topicName , String notificationTopicName , String eventTime ,
305
+ OnlineConfig onlineConfig )
303
306
throws IOException , FeatureStoreException {
304
307
305
308
return featureGroupEngine .getOrCreateFeatureGroup (this , name , version , description , primaryKeys ,
306
309
partitionKeys , hudiPrecombineKey , onlineEnabled , timeTravelFormat , statisticsConfig , topicName ,
307
- notificationTopicName , eventTime );
310
+ notificationTopicName , eventTime , onlineConfig );
308
311
}
309
312
310
313
/**
@@ -401,7 +404,7 @@ public StreamFeatureGroup.StreamFeatureGroupBuilder createStreamFeatureGroup() {
401
404
public StreamFeatureGroup getOrCreateStreamFeatureGroup (String name , Integer version )
402
405
throws IOException , FeatureStoreException {
403
406
return featureGroupEngine .getOrCreateStreamFeatureGroup (this , name , version , null ,
404
- null , null , null , false , null , null );
407
+ null , null , null , false , null , null , null );
405
408
}
406
409
407
410
/**
@@ -435,7 +438,7 @@ public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer ver
435
438
boolean onlineEnabled , String eventTime )
436
439
throws IOException , FeatureStoreException {
437
440
return featureGroupEngine .getOrCreateStreamFeatureGroup (this , name , version , null ,
438
- primaryKeys , null , null , onlineEnabled , null , eventTime );
441
+ primaryKeys , null , null , onlineEnabled , null , eventTime , null );
439
442
}
440
443
441
444
/**
@@ -474,7 +477,7 @@ public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer ver
474
477
475
478
476
479
return featureGroupEngine .getOrCreateStreamFeatureGroup (this , name , version , null ,
477
- primaryKeys , partitionKeys , null , onlineEnabled , null , eventTime );
480
+ primaryKeys , partitionKeys , null , onlineEnabled , null , eventTime , null );
478
481
}
479
482
480
483
/**
@@ -511,6 +514,7 @@ public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer ver
511
514
* @param eventTime Name of the feature containing the event
512
515
* time for the features in this feature group. If eventTime is set
513
516
* the feature group can be used for point-in-time joins.
517
+ * @param onlineConfig Optionally, define configuration which is used to configure online table.
514
518
* @return FeatureGroup: The feature group metadata object.
515
519
* @throws IOException Generic IO exception.
516
520
* @throws FeatureStoreException If unable to retrieve FeatureGroup from the feature store.
@@ -519,12 +523,13 @@ public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer ver
519
523
public StreamFeatureGroup getOrCreateStreamFeatureGroup (String name , Integer version , String description ,
520
524
List <String > primaryKeys , List <String > partitionKeys ,
521
525
String hudiPrecombineKey , boolean onlineEnabled ,
522
- StatisticsConfig statisticsConfig ,
523
- String eventTime )
526
+ StatisticsConfig statisticsConfig , String eventTime ,
527
+ OnlineConfig onlineConfig )
524
528
throws IOException , FeatureStoreException {
525
529
526
530
return featureGroupEngine .getOrCreateStreamFeatureGroup (this , name , version , description ,
527
- primaryKeys , partitionKeys , hudiPrecombineKey , onlineEnabled , statisticsConfig , eventTime );
531
+ primaryKeys , partitionKeys , hudiPrecombineKey , onlineEnabled , statisticsConfig , eventTime ,
532
+ onlineConfig );
528
533
}
529
534
530
535
/**
0 commit comments