Package com.logicalclocks.hsfs
Class StreamFeatureGroup<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.logicalclocks.hsfs.FeatureGroupBase
created, creator, dataSource, deltaStreamerJobConf, deprecated, description, eventTime, expectationsNames, featureGroupEngineBase, features, featureStore, featurestoreId, hudiPrecombineKey, id, location, LOGGER, name, notificationTopicName, onlineConfig, onlineEnabled, onlineIngestionApi, onlineTopicName, partitionKeys, primaryKeys, statisticColumns, statisticsConfig, subject, timeTravelFormat, topicName, type, utils, version -
Constructor Summary
ConstructorsConstructorDescriptionStreamFeatureGroup(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, OnlineConfig onlineConfig) StreamFeatureGroup(Integer id, String description, List<Feature> features) -
Method Summary
Modifier and TypeMethodDescriptioninsertStream(List<T> featureData) voidsave()Save the feature group metadata on Hopsworks.voidsave(Map<String, String> writeOptions, JobConfiguration materializationJobConfiguration) Save the feature group metadata on Hopsworks.Select a subset of features of the feature group and return a query object.Select all features of the feature group and return a query object.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.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.selectFeatures(List<Feature> features) Select a subset of features of the feature group and return a query object.Methods inherited from class com.logicalclocks.hsfs.FeatureGroupBase
addTag, checkDeprecated, delete, deleteTag, getAvroSchema, getComplexFeatures, getDeserializedAvroSchema, getDeserializedEncodedAvroSchema, getEncodedAvroSchema, getFeature, getFeatureAvroSchema, getLatestOnlineIngestion, getOnlineIngestion, getPrimaryKeys, getSubject, getTag, getTags, setDataSource, setDeprecated, unloadSubject, updateDeprecated, updateDeprecated, updateDescription, updateFeatureDescription, updateNotificationTopicName, updateStatisticsConfig
-
Field Details
-
featureGroupEngine
-
-
Constructor Details
-
StreamFeatureGroup
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, OnlineConfig onlineConfig) -
StreamFeatureGroup
public StreamFeatureGroup() -
StreamFeatureGroup
-
StreamFeatureGroup
-
-
Method Details
-
save
Save the feature group metadata on Hopsworks. This method is idempotent, if the feature group already exists the method does nothing.- Throws:
FeatureStoreExceptionIOException
-
save
public void save(Map<String, String> writeOptions, JobConfiguration materializationJobConfiguration) throws FeatureStoreException, IOExceptionSave the feature group metadata on Hopsworks. This method is idempotent, if the feature group already exists, the method does nothing- Parameters:
writeOptions- Options to provide to the materialization jobmaterializationJobConfiguration- Resource configuration for the materialization job- Throws:
FeatureStoreExceptionIOException
-
insertStream
- Specified by:
insertStreamin classFeatureGroupBase<List<T>>- Throws:
Exception
-
insertStream
- Specified by:
insertStreamin classFeatureGroupBase<List<T>>- Throws:
Exception
-
selectFeatures
Select a subset of features of the feature group and return a query object. The query can be used to construct joins of feature groups or create a feature view with a subset of features of the feature group.- Parameters:
features- List of Feature meta data objects.- Returns:
- Query object.
-
select
Select a subset of features of the feature group and return a query object. The query can be used to construct joins of feature groups or create a feature view with a subset of features of the feature group.- Parameters:
features- List of Feature names.- Returns:
- Query object.
-
selectAll
Select all features of the feature group and return a query object. The query can be used to construct joins of feature groups or create a feature view with a subset of features of the feature group.- Returns:
- Query object.
-
selectExceptFeatures
Select all features including primary key and event time feature of the feature group except provided `features` and return a query object. The query can be used to construct joins of feature groups or create a feature view with a subset of features of the feature group.- Parameters:
features- List of Feature meta data objects.- Returns:
- Query object.
-
selectExcept
Select all features including primary key and event time feature of the feature group except provided `features` and return a query object. The query can be used to construct joins of feature groups or create a feature view with a subset of features of the feature group.- Parameters:
features- List of Feature names.- Returns:
- Query object.
-