public class FeatureGroupBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Date |
created |
protected User |
creator |
protected String |
description |
protected String |
eventTime |
protected List<String> |
expectationsNames |
protected FeatureGroupBaseEngine |
featureGroupBaseEngine |
protected List<Feature> |
features |
protected FeatureStore |
featureStore |
protected Integer |
id |
protected String |
location |
protected String |
name |
protected List<String> |
primaryKeys |
protected StatisticsConfig |
statisticsConfig |
protected StatisticsEngine |
statisticsEngine |
protected Subject |
subject |
protected TimeTravelFormat |
timeTravelFormat |
protected String |
type |
protected FeatureGroupUtils |
utils |
protected Integer |
version |
| Constructor and Description |
|---|
FeatureGroupBase() |
FeatureGroupBase(FeatureStore featureStore,
Integer id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(String name,
Object value)
Add name/value tag to the feature group.
|
void |
appendFeatures(Feature features)
Append a single feature to the schema of the feature group.
|
void |
appendFeatures(List<Feature> features)
Append features to the schema of the feature group.
|
Statistics |
computeStatistics()
Recompute the statistics for the feature group and save them to the feature store.
|
void |
delete() |
void |
deleteTag(String name)
Delete a tag of the feature group.
|
Query |
filter(Filter filter)
Filter the query based on a condition for a feature or a conjunction of multiple filters.
|
Query |
filter(FilterLogic filter)
Filter the query based on a condition for a feature or a conjunction of multiple filters.
|
List<String> |
getComplexFeatures() |
Date |
getCreated() |
User |
getCreator() |
String |
getDescription() |
org.apache.avro.Schema |
getDeserializedAvroSchema() |
String |
getEncodedAvroSchema() |
String |
getEventTime() |
List<String> |
getExpectationsNames() |
Feature |
getFeature(String name)
Retrieve a feature of the feature group by name.
|
String |
getFeatureAvroSchema(String featureName) |
List<Feature> |
getFeatures() |
FeatureStore |
getFeatureStore() |
Integer |
getId() |
String |
getLocation() |
String |
getName() |
String |
getOnlineTopicName() |
List<String> |
getPrimaryKeys() |
Statistics |
getStatistics()
Get the last statistics commit for the feature group.
|
Statistics |
getStatistics(String commitTime)
Get the statistics of a specific commit time for the feature group.
|
StatisticsConfig |
getStatisticsConfig() |
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.
|
TimeTravelFormat |
getTimeTravelFormat() |
String |
getType() |
Integer |
getVersion() |
<T> T |
read() |
Query |
select(List<String> features) |
Query |
selectAll() |
Query |
selectAll(boolean includePrimaryKey,
boolean includeEventTime) |
Query |
selectExcept(List<String> features) |
Query |
selectExceptFeatures(List<Feature> features) |
Query |
selectFeatures(List<Feature> features) |
void |
setDescription(String description) |
void |
setEventTime(String eventTime) |
void |
setExpectationsNames(List<String> expectationsNames) |
void |
setFeatures(List<Feature> features) |
void |
setFeatureStore(FeatureStore featureStore) |
void |
setId(Integer id) |
void |
setLocation(String location) |
void |
setName(String name) |
void |
setStatisticsConfig(StatisticsConfig statisticsConfig) |
void |
setTimeTravelFormat(TimeTravelFormat timeTravelFormat) |
void |
setType(String type) |
void |
setVersion(Integer version) |
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.
|
void |
updateFeatures(Feature feature)
Update the metadata of multiple features.
|
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 FeatureStore 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 Subject subject
protected FeatureGroupBaseEngine featureGroupBaseEngine
protected StatisticsEngine statisticsEngine
protected FeatureGroupUtils utils
public FeatureGroupBase(FeatureStore featureStore, Integer id)
public FeatureGroupBase()
public Query selectAll()
public Query selectAll(boolean includePrimaryKey, boolean includeEventTime)
public void delete()
throws FeatureStoreException,
IOException
FeatureStoreExceptionIOExceptionpublic <T> T read()
throws FeatureStoreException,
IOException
FeatureStoreExceptionIOExceptionpublic 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 void updateFeatures(List<Feature> features) throws FeatureStoreException, IOException, ParseException
features - List of Feature metadata objectsFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionParseException - ParseExceptionpublic void updateFeatures(Feature feature) throws FeatureStoreException, IOException, ParseException
feature - Feature metadata objectFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionParseException - ParseExceptionpublic void appendFeatures(List<Feature> features) throws FeatureStoreException, IOException, ParseException
features - list of Feature metadata objectsFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionParseException - ParseExceptionpublic 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 Statistics computeStatistics() throws FeatureStoreException, IOException
FeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic Statistics getStatistics() throws FeatureStoreException, IOException
FeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic Statistics getStatistics(String commitTime) throws FeatureStoreException, IOException
commitTime - commit time in the format "YYYYMMDDhhmmss"FeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic Subject getSubject() throws FeatureStoreException, IOException
FeatureStoreExceptionIOExceptionpublic void unloadSubject()
public Query filter(Filter filter) throws FeatureStoreException, IOException
filter - Filter metadata objectFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic Query filter(FilterLogic filter) throws FeatureStoreException, IOException
filter - Filter metadata objectFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic Feature getFeature(String name) throws FeatureStoreException
name - feature nameFeatureStoreException - FeatureStoreExceptionpublic String getOnlineTopicName() throws FeatureStoreException, IOException
FeatureStoreExceptionIOExceptionpublic String getFeatureAvroSchema(String featureName) throws FeatureStoreException, IOException
FeatureStoreExceptionIOExceptionpublic String getEncodedAvroSchema() throws FeatureStoreException, IOException
FeatureStoreExceptionIOExceptionpublic org.apache.avro.Schema getDeserializedAvroSchema()
throws FeatureStoreException,
IOException
FeatureStoreExceptionIOExceptionpublic Integer getId()
public void setId(Integer id)
public FeatureStore getFeatureStore()
public void setFeatureStore(FeatureStore featureStore)
public String getType()
public void setType(String type)
public String getName()
public void setName(String name)
public Integer getVersion()
public void setVersion(Integer version)
public String getDescription()
public void setDescription(String description)
public String getEventTime()
public void setEventTime(String eventTime)
public Date getCreated()
public User getCreator()
public StatisticsConfig getStatisticsConfig()
public void setStatisticsConfig(StatisticsConfig statisticsConfig)
public String getLocation()
public void setLocation(String location)
public TimeTravelFormat getTimeTravelFormat()
public void setTimeTravelFormat(TimeTravelFormat timeTravelFormat)
Copyright © 2023. All rights reserved.