public abstract class FeatureGroupBase<T> extends Object
Constructor and Description |
---|
FeatureGroupBase() |
Modifier and Type | Method and Description |
---|---|
void |
addTag(String name,
Object value)
Add name/value tag to the feature group.
|
void |
checkDeprecated() |
void |
delete() |
void |
deleteTag(String name)
Delete a tag of the feature group.
|
String |
getAvroSchema() |
List<String> |
getComplexFeatures() |
org.apache.avro.Schema |
getDeserializedAvroSchema() |
org.apache.avro.Schema |
getDeserializedEncodedAvroSchema() |
String |
getEncodedAvroSchema() |
Feature |
getFeature(String name)
Retrieve a feature of the feature group by name.
|
String |
getFeatureAvroSchema(String featureName) |
List<String> |
getPrimaryKeys() |
Subject |
getSubject() |
Object |
getTag(String name)
Get a single tag value of the feature group.
|
Map<String,Object> |
getTags()
Get all tags of the feature group.
|
abstract Object |
insertStream(T featureData) |
abstract Object |
insertStream(T featureData,
Map<String,String> writeOptions) |
void |
setDeprecated(Boolean deprecated) |
void |
unloadSubject() |
void |
updateDeprecated()
Deprecate the feature group.
|
void |
updateDeprecated(Boolean deprecate)
Deprecate the feature group.
|
void |
updateDescription(String description)
Update the description of the feature group.
|
void |
updateFeatureDescription(String featureName,
String description)
Update the description of a single feature.
|
void |
updateNotificationTopicName(String notificationTopicName)
Update the notification topic name of the feature group.
|
void |
updateStatisticsConfig()
Update the statistics configuration of the feature group.
|
protected Integer id
protected FeatureStoreBase featureStore
protected String type
protected String name
protected Integer version
protected String description
protected String eventTime
protected Date created
protected User creator
protected StatisticsConfig statisticsConfig
protected String location
protected TimeTravelFormat timeTravelFormat
protected Boolean onlineEnabled
protected String onlineTopicName
protected String topicName
protected String notificationTopicName
protected DeltaStreamerJobConf deltaStreamerJobConf
protected Boolean deprecated
protected StorageConnector storageConnector
protected String path
protected String hudiPrecombineKey
protected Subject subject
protected FeatureGroupEngineBase featureGroupEngineBase
protected FeatureGroupUtils utils
protected static final org.slf4j.Logger LOGGER
public void setDeprecated(Boolean deprecated)
public void checkDeprecated()
public void delete() throws FeatureStoreException, IOException
FeatureStoreException
IOException
public void addTag(String name, Object value) throws FeatureStoreException, IOException
name
- name of the tagvalue
- value of the tag. The value of a tag can be any valid json - primitives, arrays or json objects.FeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic Map<String,Object> getTags() throws FeatureStoreException, IOException
FeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic Object getTag(String name) throws FeatureStoreException, IOException
name
- name of tha tagFeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic void deleteTag(String name) throws FeatureStoreException, IOException
name
- name of the tag to be deletedFeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic void updateDescription(String description) throws FeatureStoreException, IOException
description
- feature group description.FeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic void updateNotificationTopicName(String notificationTopicName) throws FeatureStoreException, IOException
notificationTopicName
- feature group notification topic name.FeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic void updateDeprecated() throws FeatureStoreException, IOException
FeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic void updateDeprecated(Boolean deprecate) throws FeatureStoreException, IOException
deprecate
- identifies if feature group should be deprecated.FeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic void updateFeatureDescription(String featureName, String description) throws FeatureStoreException, IOException
featureName
- Name of the featuredescription
- Description of the featureFeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic abstract Object insertStream(T featureData, Map<String,String> writeOptions) throws Exception
Exception
public void updateStatisticsConfig() throws FeatureStoreException, IOException
FeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic Subject getSubject() throws FeatureStoreException, IOException
FeatureStoreException
IOException
public void unloadSubject()
public Feature getFeature(String name) throws FeatureStoreException
name
- feature nameFeatureStoreException
- FeatureStoreExceptionpublic String getAvroSchema() throws FeatureStoreException, IOException
FeatureStoreException
IOException
public String getFeatureAvroSchema(String featureName) throws FeatureStoreException, IOException
FeatureStoreException
IOException
public String getEncodedAvroSchema() throws FeatureStoreException, IOException
FeatureStoreException
IOException
public org.apache.avro.Schema getDeserializedEncodedAvroSchema() throws FeatureStoreException, IOException
FeatureStoreException
IOException
public org.apache.avro.Schema getDeserializedAvroSchema() throws FeatureStoreException, IOException
FeatureStoreException
IOException
Copyright © 2025. All rights reserved.