Package com.logicalclocks.hsfs
Class FeatureGroupBase<T>
java.lang.Object
com.logicalclocks.hsfs.FeatureGroupBase<T>
- Direct Known Subclasses:
ExternalFeatureGroup,FeatureGroup,StreamFeatureGroup,StreamFeatureGroup,StreamFeatureGroup,StreamFeatureGroup
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Userprotected DataSourceprotected DeltaStreamerJobConfprotected Booleanprotected Stringprotected Stringprotected FeatureGroupEngineBaseprotected FeatureStoreBaseprotected Integerprotected Stringprotected Integerprotected Stringprotected static final org.slf4j.Loggerprotected Stringprotected Stringprotected OnlineConfigprotected Booleanprotected OnlineIngestionApiprotected Stringprotected StatisticsConfigprotected Subjectprotected TimeTravelFormatprotected Stringprotected Stringprotected FeatureGroupUtilsprotected Integer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd name/value tag to the feature group.voidvoiddelete()voidDelete a tag of the feature group.org.apache.avro.Schemaorg.apache.avro.SchemagetFeature(String name) Retrieve a feature of the feature group by name.getFeatureAvroSchema(String featureName) Get a single tag value of the feature group.getTags()Get all tags of the feature group.abstract ObjectinsertStream(T featureData) abstract ObjectinsertStream(T featureData, Map<String, String> writeOptions) voidsetDataSource(DataSource dataSource) voidsetDeprecated(Boolean deprecated) voidvoidDeprecate the feature group.voidupdateDeprecated(Boolean deprecate) Deprecate the feature group.voidupdateDescription(String description) Update the description of the feature group.voidupdateFeatureDescription(String featureName, String description) Update the description of a single feature.voidupdateNotificationTopicName(String notificationTopicName) Update the notification topic name of the feature group.voidUpdate the statistics configuration of the feature group.
-
Field Details
-
id
-
featureStore
-
featurestoreId
-
type
-
name
-
version
-
description
-
-
features
-
eventTime
-
created
-
creator
-
statisticsConfig
-
expectationsNames
-
location
-
timeTravelFormat
-
onlineEnabled
-
onlineTopicName
-
topicName
-
notificationTopicName
-
statisticColumns
-
deltaStreamerJobConf
-
deprecated
-
onlineConfig
-
dataSource
-
partitionKeys
-
hudiPrecombineKey
-
subject
-
featureGroupEngineBase
-
utils
-
onlineIngestionApi
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
FeatureGroupBase
public FeatureGroupBase()
-
-
Method Details
-
setDeprecated
-
checkDeprecated
public void checkDeprecated() -
setDataSource
-
delete
- Throws:
FeatureStoreExceptionIOException
-
addTag
Add name/value tag to the feature group.- Parameters:
name- name of the tagvalue- value of the tag. The value of a tag can be any valid json - primitives, arrays or json objects.- Throws:
FeatureStoreException- FeatureStoreExceptionIOException- IOException
-
getTags
Get all tags of the feature group.- Returns:
- map of tag name and values. The value of a tag can be any valid json - primitives, arrays or json objects
- Throws:
FeatureStoreException- FeatureStoreExceptionIOException- IOException
-
getTag
Get a single tag value of the feature group.- Parameters:
name- name of tha tag- Returns:
- The value of a tag can be any valid json - primitives, arrays or json objects
- Throws:
FeatureStoreException- FeatureStoreExceptionIOException- IOException
-
deleteTag
Delete a tag of the feature group.- Parameters:
name- name of the tag to be deleted- Throws:
FeatureStoreException- FeatureStoreExceptionIOException- IOException
-
updateDescription
Update the description of the feature group.- Parameters:
description- feature group description.- Throws:
FeatureStoreException- FeatureStoreExceptionIOException- IOException
-
updateNotificationTopicName
public void updateNotificationTopicName(String notificationTopicName) throws FeatureStoreException, IOException Update the notification topic name of the feature group.- Parameters:
notificationTopicName- feature group notification topic name.- Throws:
FeatureStoreException- FeatureStoreExceptionIOException- IOException
-
updateDeprecated
Deprecate the feature group.- Throws:
FeatureStoreException- FeatureStoreExceptionIOException- IOException
-
updateDeprecated
Deprecate the feature group.- Parameters:
deprecate- identifies if feature group should be deprecated.- Throws:
FeatureStoreException- FeatureStoreExceptionIOException- IOException
-
updateFeatureDescription
public void updateFeatureDescription(String featureName, String description) throws FeatureStoreException, IOException Update the description of a single feature.- Parameters:
featureName- Name of the featuredescription- Description of the feature- Throws:
FeatureStoreException- FeatureStoreExceptionIOException- IOException
-
insertStream
- Throws:
Exception
-
insertStream
public abstract Object insertStream(T featureData, Map<String, String> writeOptions) throws Exception- Throws:
Exception
-
updateStatisticsConfig
Update the statistics configuration of the feature group. Change the `enabled`, `histograms`, `correlations` or `columns` attributes and persist the changes by calling this method.- Throws:
FeatureStoreException- FeatureStoreExceptionIOException- IOException
-
getSubject
- Throws:
FeatureStoreExceptionIOException
-
unloadSubject
public void unloadSubject() -
getFeature
Retrieve a feature of the feature group by name.- Parameters:
name- feature name- Returns:
- Feature metadata object
- Throws:
FeatureStoreException- FeatureStoreException
-
getPrimaryKeys
-
getComplexFeatures
-
getAvroSchema
- Throws:
FeatureStoreExceptionIOException
-
getFeatureAvroSchema
- Throws:
FeatureStoreExceptionIOException
-
getEncodedAvroSchema
- Throws:
FeatureStoreExceptionIOException
-
getDeserializedEncodedAvroSchema
public org.apache.avro.Schema getDeserializedEncodedAvroSchema() throws FeatureStoreException, IOException- Throws:
FeatureStoreExceptionIOException
-
getDeserializedAvroSchema
- Throws:
FeatureStoreExceptionIOException
-
getLatestOnlineIngestion
- Throws:
FeatureStoreExceptionIOException
-
getOnlineIngestion
- Throws:
FeatureStoreExceptionIOException
-