public abstract class FeatureGroupBase<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected Date |
created |
protected User |
creator |
protected DeltaStreamerJobConf |
deltaStreamerJobConf |
protected String |
description |
protected String |
eventTime |
protected List<String> |
expectationsNames |
protected FeatureGroupEngineBase |
featureGroupEngineBase |
protected List<Feature> |
features |
protected FeatureStoreBase |
featureStore |
protected String |
hudiPrecombineKey |
protected Integer |
id |
protected String |
location |
protected static org.slf4j.Logger |
LOGGER |
protected String |
name |
protected Boolean |
onlineEnabled |
protected String |
onlineTopicName |
protected List<String> |
partitionKeys |
protected List<String> |
primaryKeys |
protected List<String> |
statisticColumns |
protected StatisticsConfig |
statisticsConfig |
protected Subject |
subject |
protected TimeTravelFormat |
timeTravelFormat |
protected String |
type |
protected FeatureGroupUtils |
utils |
protected Integer |
version |
Constructor and Description |
---|
FeatureGroupBase() |
Modifier and Type | Method and Description |
---|---|
void |
addTag(String name,
Object value)
Add name/value tag to the feature group.
|
abstract void |
appendFeatures(Feature features)
Append a single feature to the schema of the feature group.
|
abstract void |
appendFeatures(List<Feature> features)
Append features to the schema of the feature group.
|
abstract QueryBase |
asOf(String wallclockTime) |
abstract QueryBase |
asOf(String wallclockTime,
String excludeUntil) |
abstract void |
commitDeleteRecord(T featureData) |
abstract void |
commitDeleteRecord(T featureData,
Map<String,String> writeOptions) |
abstract Map<Long,Map<String,String>> |
commitDetails() |
abstract Map<Long,Map<String,String>> |
commitDetails(Integer limit) |
abstract Map<Long,Map<String,String>> |
commitDetails(String wallclockTime) |
abstract Map<Long,Map<String,String>> |
commitDetails(String wallclockTime,
Integer limit) |
abstract Statistics |
computeStatistics()
Recompute the statistics for the feature group and save them to the feature store.
|
abstract Statistics |
computeStatistics(String wallclockTime) |
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() |
abstract Statistics |
getStatistics()
Get the last statistics commit for the feature group.
|
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 void |
insert(T featureData) |
abstract void |
insert(T featureData,
boolean overwrite) |
abstract void |
insert(T featureData,
boolean overwrite,
Map<String,String> writeOptions) |
abstract void |
insert(T featureData,
boolean overwrite,
Map<String,String> writeOptions,
JobConfiguration jobConfiguration) |
abstract void |
insert(T featureData,
HudiOperationType operation) |
abstract void |
insert(T featureData,
JobConfiguration jobConfiguration) |
abstract void |
insert(T featureData,
Map<String,String> writeOptions) |
abstract void |
insert(T featureData,
Storage storage) |
abstract void |
insert(T featureData,
Storage storage,
boolean overwrite) |
abstract void |
insert(T featureData,
Storage storage,
boolean overwrite,
HudiOperationType operation,
Map<String,String> writeOptions) |
abstract Object |
insertStream(T featureData) |
abstract Object |
insertStream(T featureData,
Map<String,String> writeOptions) |
abstract Object |
insertStream(T featureData,
String queryName) |
abstract Object |
insertStream(T featureData,
String queryName,
Map<String,String> writeOptions) |
abstract Object |
insertStream(T featureData,
String queryName,
String outputMode) |
abstract Object |
insertStream(T featureData,
String queryName,
String outputMode,
boolean awaitTermination,
Long timeout) |
abstract Object |
insertStream(T featureData,
String queryName,
String outputMode,
boolean awaitTermination,
Long timeout,
String checkpointLocation) |
abstract Object |
insertStream(T featureData,
String queryName,
String outputMode,
boolean awaitTermination,
Long timeout,
String checkpointLocation,
Map<String,String> writeOptions) |
abstract Object |
insertStream(T featureData,
String queryName,
String outputMode,
boolean awaitTermination,
Long timeout,
String checkpointLocation,
Map<String,String> writeOptions,
JobConfiguration jobConfiguration) |
abstract Object |
insertStream(T featureData,
String queryName,
String outputMode,
boolean awaitTermination,
String checkpointLocation) |
abstract Object |
insertStream(T featureData,
String queryName,
String outputMode,
String checkpointLocation) |
abstract T |
read() |
abstract T |
read(boolean online) |
abstract T |
read(boolean online,
Map<String,String> readOptions) |
abstract T |
read(Map<String,String> readOptions) |
abstract T |
read(String wallclockTime) |
abstract T |
read(String wallclockTime,
Map<String,String> readOptions) |
abstract QueryBase |
select(List<String> features) |
abstract QueryBase |
selectAll() |
abstract QueryBase |
selectExcept(List<String> features) |
abstract QueryBase |
selectExceptFeatures(List<Feature> features) |
abstract QueryBase |
selectFeatures(List<Feature> features) |
abstract void |
show(int numRows) |
abstract void |
show(int numRows,
boolean online) |
void |
unloadSubject() |
void |
updateDescription(String description)
Update the description of the feature group.
|
void |
updateFeatureDescription(String featureName,
String description)
Update the description of a single feature.
|
abstract void |
updateFeatures(Feature feature)
Update the metadata of multiple features.
|
abstract void |
updateFeatures(List<Feature> features)
Update the metadata of multiple features.
|
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 DeltaStreamerJobConf deltaStreamerJobConf
protected String hudiPrecombineKey
protected Subject subject
protected FeatureGroupEngineBase featureGroupEngineBase
protected FeatureGroupUtils utils
protected static final org.slf4j.Logger LOGGER
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 updateFeatureDescription(String featureName, String description) throws FeatureStoreException, IOException
featureName
- Name of the featuredescription
- Description of the featureFeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic abstract T read() throws FeatureStoreException, IOException
FeatureStoreException
IOException
public abstract T read(boolean online) throws FeatureStoreException, IOException
FeatureStoreException
IOException
public abstract T read(Map<String,String> readOptions) throws FeatureStoreException, IOException
FeatureStoreException
IOException
public abstract T read(boolean online, Map<String,String> readOptions) throws FeatureStoreException, IOException
FeatureStoreException
IOException
public abstract T read(String wallclockTime) throws FeatureStoreException, IOException, ParseException
public abstract T read(String wallclockTime, Map<String,String> readOptions) throws FeatureStoreException, IOException, ParseException
public abstract QueryBase asOf(String wallclockTime) throws FeatureStoreException, ParseException
FeatureStoreException
ParseException
public abstract QueryBase asOf(String wallclockTime, String excludeUntil) throws FeatureStoreException, ParseException
FeatureStoreException
ParseException
public abstract void show(int numRows) throws FeatureStoreException, IOException
FeatureStoreException
IOException
public abstract void show(int numRows, boolean online) throws FeatureStoreException, IOException
FeatureStoreException
IOException
public abstract void insert(T featureData) throws IOException, FeatureStoreException, ParseException
public abstract void insert(T featureData, Map<String,String> writeOptions) throws FeatureStoreException, IOException, ParseException
public abstract void insert(T featureData, Storage storage) throws IOException, FeatureStoreException, ParseException
public abstract void insert(T featureData, boolean overwrite) throws IOException, FeatureStoreException, ParseException
public abstract void insert(T featureData, Storage storage, boolean overwrite) throws IOException, FeatureStoreException, ParseException
public abstract void insert(T featureData, boolean overwrite, Map<String,String> writeOptions) throws FeatureStoreException, IOException, ParseException
public abstract void insert(T featureData, HudiOperationType operation) throws FeatureStoreException, IOException, ParseException
public abstract void insert(T featureData, Storage storage, boolean overwrite, HudiOperationType operation, Map<String,String> writeOptions) throws FeatureStoreException, IOException, ParseException
public abstract void insert(T featureData, JobConfiguration jobConfiguration) throws FeatureStoreException, IOException, ParseException
public abstract void insert(T featureData, boolean overwrite, Map<String,String> writeOptions, JobConfiguration jobConfiguration) throws FeatureStoreException, IOException, ParseException
public abstract void commitDeleteRecord(T featureData) throws FeatureStoreException, IOException, ParseException
public abstract void commitDeleteRecord(T featureData, Map<String,String> writeOptions) throws FeatureStoreException, IOException, ParseException
public abstract Map<Long,Map<String,String>> commitDetails() throws IOException, FeatureStoreException, ParseException
public abstract Map<Long,Map<String,String>> commitDetails(Integer limit) throws IOException, FeatureStoreException, ParseException
public abstract Map<Long,Map<String,String>> commitDetails(String wallclockTime) throws IOException, FeatureStoreException, ParseException
public abstract Map<Long,Map<String,String>> commitDetails(String wallclockTime, Integer limit) throws IOException, FeatureStoreException, ParseException
public abstract QueryBase selectAll()
public abstract Object insertStream(T featureData, String queryName) throws Exception
Exception
public abstract Object insertStream(T featureData, Map<String,String> writeOptions) throws Exception
Exception
public abstract Object insertStream(T featureData, String queryName, Map<String,String> writeOptions) throws Exception
Exception
public abstract Object insertStream(T featureData, String queryName, String outputMode) throws Exception
Exception
public abstract Object insertStream(T featureData, String queryName, String outputMode, String checkpointLocation) throws Exception
Exception
public abstract Object insertStream(T featureData, String queryName, String outputMode, boolean awaitTermination, Long timeout) throws Exception
Exception
public abstract Object insertStream(T featureData, String queryName, String outputMode, boolean awaitTermination, Long timeout, String checkpointLocation) throws Exception
Exception
public abstract Object insertStream(T featureData, String queryName, String outputMode, boolean awaitTermination, Long timeout, String checkpointLocation, Map<String,String> writeOptions) throws Exception
Exception
public abstract Object insertStream(T featureData, String queryName, String outputMode, boolean awaitTermination, String checkpointLocation) throws Exception
Exception
public abstract Object insertStream(T featureData, String queryName, String outputMode, boolean awaitTermination, Long timeout, String checkpointLocation, Map<String,String> writeOptions, JobConfiguration jobConfiguration) throws Exception
Exception
public abstract void updateFeatures(List<Feature> features) throws FeatureStoreException, IOException, ParseException
features
- List of Feature metadata objectsFeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionParseException
- ParseExceptionpublic abstract void updateFeatures(Feature feature) throws FeatureStoreException, IOException, ParseException
feature
- Feature metadata objectFeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionParseException
- ParseExceptionpublic abstract void appendFeatures(List<Feature> features) throws FeatureStoreException, IOException, ParseException
features
- list of Feature metadata objectsFeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionParseException
- ParseExceptionpublic abstract void appendFeatures(Feature features) throws FeatureStoreException, IOException, ParseException
features
- List of Feature metadata objectsFeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionParseException
- ParseExceptionpublic void updateStatisticsConfig() throws FeatureStoreException, IOException
FeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionpublic abstract Statistics computeStatistics() throws FeatureStoreException, IOException, ParseException
FeatureStoreException
- FeatureStoreExceptionIOException
- IOExceptionParseException
public abstract Statistics computeStatistics(String wallclockTime) throws FeatureStoreException, IOException, ParseException
public abstract Statistics getStatistics() 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 © 2023. All rights reserved.