public class StreamFeatureGroup<T> extends FeatureGroupBase<List<T>>
| Modifier and Type | Field and Description |
|---|---|
protected FeatureGroupEngine |
featureGroupEngine |
created, creator, deltaStreamerJobConf, deprecated, description, eventTime, expectationsNames, featureGroupEngineBase, features, featureStore, featurestoreId, hudiPrecombineKey, id, location, LOGGER, name, notificationTopicName, onlineEnabled, onlineTopicName, partitionKeys, path, primaryKeys, statisticColumns, statisticsConfig, storageConnector, subject, timeTravelFormat, topicName, type, utils, version| Constructor and Description |
|---|
StreamFeatureGroup() |
StreamFeatureGroup(FeatureStoreBase featureStore,
int id) |
StreamFeatureGroup(FeatureStoreBase featureStore,
@NonNull String name,
Integer version,
String description,
TimeTravelFormat timeTravelFormat,
List<String> primaryKeys,
List<String> partitionKeys,
String hudiPrecombineKey,
boolean onlineEnabled,
List<Feature> features,
StatisticsConfig statisticsConfig,
String onlineTopicName,
String eventTime,
StorageConnector storageConnector,
String path) |
StreamFeatureGroup(Integer id,
String description,
List<Feature> features) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
insertStream(List<T> featureData) |
List<T> |
insertStream(List<T> featureData,
Map<String,String> writeOptions) |
void |
save()
Save the feature group metadata on Hopsworks.
|
void |
save(Map<String,String> writeOptions,
JobConfiguration materializationJobConfiguration)
Save the feature group metadata on Hopsworks.
|
Query |
select(List<String> features)
Select a subset of features of the feature group and return a query object.
|
Query |
selectAll()
Select all features of the feature group and return a query object.
|
Query |
selectExcept(List<String> features)
Select all features including primary key and event time feature of the feature group except provided `features`
and return a query object.
|
Query |
selectExceptFeatures(List<Feature> features)
Select all features including primary key and event time feature of the feature group except provided `features`
and return a query object.
|
Query |
selectFeatures(List<Feature> features)
Select a subset of features of the feature group and return a query object.
|
addTag, checkDeprecated, delete, deleteTag, getAvroSchema, getComplexFeatures, getDeserializedAvroSchema, getDeserializedEncodedAvroSchema, getEncodedAvroSchema, getFeature, getFeatureAvroSchema, getPrimaryKeys, getSubject, getTag, getTags, setDeprecated, unloadSubject, updateDeprecated, updateDeprecated, updateDescription, updateFeatureDescription, updateNotificationTopicName, updateStatisticsConfigprotected FeatureGroupEngine featureGroupEngine
public StreamFeatureGroup(FeatureStoreBase featureStore, @NonNull @NonNull String name, Integer version, String description, TimeTravelFormat timeTravelFormat, List<String> primaryKeys, List<String> partitionKeys, String hudiPrecombineKey, boolean onlineEnabled, List<Feature> features, StatisticsConfig statisticsConfig, String onlineTopicName, String eventTime, StorageConnector storageConnector, String path)
public StreamFeatureGroup()
public StreamFeatureGroup(Integer id, String description, List<Feature> features)
public StreamFeatureGroup(FeatureStoreBase featureStore, int id)
public void save()
throws FeatureStoreException,
IOException
FeatureStoreExceptionIOExceptionpublic void save(Map<String,String> writeOptions, JobConfiguration materializationJobConfiguration) throws FeatureStoreException, IOException
writeOptions - Options to provide to the materialization jobmaterializationJobConfiguration - Resource configuration for the materialization jobFeatureStoreExceptionIOExceptionpublic List<T> insertStream(List<T> featureData) throws Exception
insertStream in class FeatureGroupBase<List<T>>Exceptionpublic List<T> insertStream(List<T> featureData, Map<String,String> writeOptions) throws Exception
insertStream in class FeatureGroupBase<List<T>>Exceptionpublic Query selectFeatures(List<Feature> features)
features - List of Feature meta data objects.public Query select(List<String> features)
features - List of Feature names.public Query selectAll()
public Query selectExceptFeatures(List<Feature> features)
features - List of Feature meta data objects.public Query selectExcept(List<String> features)
features - List of Feature names.Copyright © 2025. All rights reserved.