public class FeatureView extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureView.FeatureViewBuilder |
| Constructor and Description |
|---|
FeatureView() |
FeatureView(@NonNull String name,
Integer version,
@NonNull Query query,
String description,
@NonNull FeatureStore featureStore,
List<String> labels) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(String name,
Object value)
Add name/value tag to the feature view.
|
void |
addTrainingDatasetTag(Integer version,
String name,
Object value)
Add name/value tag to the training dataset.
|
static void |
clean(FeatureStore featureStore,
String featureViewName,
Integer featureViewVersion) |
Integer |
createTrainingData(String startTime,
String endTime,
String description,
DataFormat dataFormat) |
Integer |
createTrainingData(String startTime,
String endTime,
String description,
DataFormat dataFormat,
Boolean coalesce,
StorageConnector storageConnector,
String location,
Long seed,
StatisticsConfig statisticsConfig,
Map<String,String> writeOptions,
FilterLogic extraFilterLogic,
Filter extraFilter) |
Integer |
createTrainTestSplit(Float testSize,
String trainStart,
String trainEnd,
String testStart,
String testEnd,
String description,
DataFormat dataFormat) |
Integer |
createTrainTestSplit(Float testSize,
String trainStart,
String trainEnd,
String testStart,
String testEnd,
String description,
DataFormat dataFormat,
Boolean coalesce,
StorageConnector storageConnector,
String location,
Long seed,
StatisticsConfig statisticsConfig,
Map<String,String> writeOptions,
FilterLogic extraFilterLogic,
Filter extraFilter) |
Integer |
createTrainValidationTestSplit(Float validationSize,
Float testSize,
String trainStart,
String trainEnd,
String validationStart,
String validationEnd,
String testStart,
String testEnd,
String description,
DataFormat dataFormat) |
Integer |
createTrainValidationTestSplit(Float validationSize,
Float testSize,
String trainStart,
String trainEnd,
String validationStart,
String validationEnd,
String testStart,
String testEnd,
String description,
DataFormat dataFormat,
Boolean coalesce,
StorageConnector storageConnector,
String location,
Long seed,
StatisticsConfig statisticsConfig,
Map<String,String> writeOptions,
FilterLogic extraFilterLogic,
Filter extraFilter) |
void |
delete() |
void |
deleteAllTrainingDatasets() |
void |
deleteTag(String name)
Delete a tag of the feature view.
|
void |
deleteTrainingDataset(Integer version) |
void |
deleteTrainingDatasetTag(Integer version,
String name)
Delete a tag of the training dataset.
|
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> |
getBatchData(String startTime,
String endTime) |
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> |
getBatchData(String startTime,
String endTime,
Map<String,String> readOptions) |
String |
getBatchQuery() |
String |
getBatchQuery(String startTime,
String endTime) |
String |
getDescription() |
List<TrainingDatasetFeature> |
getFeatures() |
FeatureStore |
getFeatureStore() |
List<Object> |
getFeatureVector(Map<String,Object> entry) |
List<Object> |
getFeatureVector(Map<String,Object> entry,
boolean external) |
List<List<Object>> |
getFeatureVectors(Map<String,List<Object>> entry) |
List<List<Object>> |
getFeatureVectors(Map<String,List<Object>> entry,
boolean external) |
Integer |
getId() |
List<String> |
getLabels() |
String |
getName() |
HashSet<String> |
getPrimaryKeys()
Set of primary key names that is used as keys in input dict object for `get_serving_vector` method.
|
Query |
getQuery() |
Object |
getTag(String name)
Get a single tag value of the feature view.
|
Map<String,Object> |
getTags()
Get all tags of the feature view.
|
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
getTrainingData(Integer version) |
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
getTrainingData(Integer version,
Map<String,String> readOptions) |
Object |
getTrainingDatasetTag(Integer version,
String name)
Get a single tag value of the training dataset.
|
Map<String,Object> |
getTrainingDatasetTags(Integer version)
Get all tags of the training dataset.
|
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
getTrainTestSplit(Integer version) |
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
getTrainTestSplit(Integer version,
Map<String,String> readOptions) |
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
getTrainValidationTestSplit(Integer version) |
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
getTrainValidationTestSplit(Integer version,
Map<String,String> readOptions) |
String |
getType() |
Integer |
getVersion() |
void |
initBatchScoring(Integer trainingDatasetVersion) |
void |
initServing() |
void |
initServing(Boolean batch,
Boolean external) |
void |
purgeAllTrainingData() |
void |
purgeTrainingData(Integer version) |
void |
recreateTrainingDataset(Integer version,
Map<String,String> writeOptions) |
void |
setDescription(String description) |
void |
setFeatures(List<TrainingDatasetFeature> features) |
void |
setFeatureStore(FeatureStore featureStore) |
void |
setId(Integer id) |
void |
setLabels(List<String> labels) |
void |
setName(String name) |
void |
setQuery(Query query) |
void |
setType(String type) |
void |
setVersion(Integer version) |
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
trainingData(String startTime,
String endTime,
String description) |
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
trainingData(String startTime,
String endTime,
String description,
Long seed,
StatisticsConfig statisticsConfig,
Map<String,String> readOptions,
FilterLogic extraFilterLogic,
Filter extraFilter) |
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
trainTestSplit(Float testSize,
String trainStart,
String trainEnd,
String testStart,
String testEnd,
String description) |
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
trainTestSplit(Float testSize,
String trainStart,
String trainEnd,
String testStart,
String testEnd,
String description,
Long seed,
StatisticsConfig statisticsConfig,
Map<String,String> readOptions,
FilterLogic extraFilterLogic,
Filter extraFilter) |
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
trainValidationTestSplit(Float validationSize,
Float testSize,
String trainStart,
String trainEnd,
String validationStart,
String validationEnd,
String testStart,
String testEnd,
String description) |
List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> |
trainValidationTestSplit(Float validationSize,
Float testSize,
String trainStart,
String trainEnd,
String validationStart,
String validationEnd,
String testStart,
String testEnd,
String description,
Long seed,
StatisticsConfig statisticsConfig,
Map<String,String> readOptions,
FilterLogic extraFilterLogic,
Filter extraFilter) |
FeatureView |
update(FeatureView other) |
public FeatureView(@NonNull
@NonNull String name,
Integer version,
@NonNull
@NonNull Query query,
String description,
@NonNull
@NonNull FeatureStore featureStore,
List<String> labels)
public FeatureView()
public void delete()
throws FeatureStoreException,
IOException
FeatureStoreExceptionIOExceptionpublic static void clean(FeatureStore featureStore, String featureViewName, Integer featureViewVersion) throws FeatureStoreException, IOException
FeatureStoreExceptionIOExceptionpublic FeatureView update(FeatureView other) throws FeatureStoreException, IOException
FeatureStoreExceptionIOExceptionpublic void initServing()
throws FeatureStoreException,
IOException,
SQLException,
ClassNotFoundException
public void initServing(Boolean batch, Boolean external) throws FeatureStoreException, IOException, SQLException, ClassNotFoundException
public void initBatchScoring(Integer trainingDatasetVersion)
public List<Object> getFeatureVector(Map<String,Object> entry) throws SQLException, FeatureStoreException, IOException, ClassNotFoundException
public List<Object> getFeatureVector(Map<String,Object> entry, boolean external) throws SQLException, FeatureStoreException, IOException, ClassNotFoundException
public List<List<Object>> getFeatureVectors(Map<String,List<Object>> entry) throws SQLException, FeatureStoreException, IOException, ClassNotFoundException
public List<List<Object>> getFeatureVectors(Map<String,List<Object>> entry, boolean external) throws SQLException, FeatureStoreException, IOException, ClassNotFoundException
public String getBatchQuery() throws FeatureStoreException, IOException, ParseException
public String getBatchQuery(String startTime, String endTime) throws FeatureStoreException, IOException, ParseException
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getBatchData(String startTime, String endTime) throws FeatureStoreException, IOException, ParseException
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getBatchData(String startTime, String endTime, Map<String,String> readOptions) throws FeatureStoreException, IOException, ParseException
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 objectsFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic Map<String,Object> getTags() throws FeatureStoreException, IOException
FeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic Object getTag(String name) throws FeatureStoreException, IOException
name - name of the tagFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic void deleteTag(String name) throws FeatureStoreException, IOException
name - name of the tag to be deletedFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic Integer createTrainingData(String startTime, String endTime, String description, DataFormat dataFormat) throws IOException, FeatureStoreException, ParseException
public Integer createTrainingData(String startTime, String endTime, String description, DataFormat dataFormat, Boolean coalesce, StorageConnector storageConnector, String location, Long seed, StatisticsConfig statisticsConfig, Map<String,String> writeOptions, FilterLogic extraFilterLogic, Filter extraFilter) throws IOException, FeatureStoreException, ParseException
public Integer createTrainTestSplit(Float testSize, String trainStart, String trainEnd, String testStart, String testEnd, String description, DataFormat dataFormat) throws IOException, FeatureStoreException, ParseException
public Integer createTrainTestSplit(Float testSize, String trainStart, String trainEnd, String testStart, String testEnd, String description, DataFormat dataFormat, Boolean coalesce, StorageConnector storageConnector, String location, Long seed, StatisticsConfig statisticsConfig, Map<String,String> writeOptions, FilterLogic extraFilterLogic, Filter extraFilter) throws IOException, FeatureStoreException, ParseException
public Integer createTrainValidationTestSplit(Float validationSize, Float testSize, String trainStart, String trainEnd, String validationStart, String validationEnd, String testStart, String testEnd, String description, DataFormat dataFormat) throws IOException, FeatureStoreException, ParseException
public Integer createTrainValidationTestSplit(Float validationSize, Float testSize, String trainStart, String trainEnd, String validationStart, String validationEnd, String testStart, String testEnd, String description, DataFormat dataFormat, Boolean coalesce, StorageConnector storageConnector, String location, Long seed, StatisticsConfig statisticsConfig, Map<String,String> writeOptions, FilterLogic extraFilterLogic, Filter extraFilter) throws IOException, FeatureStoreException, ParseException
public void recreateTrainingDataset(Integer version, Map<String,String> writeOptions) throws FeatureStoreException, IOException
FeatureStoreExceptionIOExceptionpublic List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getTrainingData(Integer version) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getTrainingData(Integer version, Map<String,String> readOptions) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getTrainTestSplit(Integer version) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getTrainTestSplit(Integer version, Map<String,String> readOptions) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getTrainValidationTestSplit(Integer version) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getTrainValidationTestSplit(Integer version, Map<String,String> readOptions) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> trainingData(String startTime, String endTime, String description) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> trainingData(String startTime, String endTime, String description, Long seed, StatisticsConfig statisticsConfig, Map<String,String> readOptions, FilterLogic extraFilterLogic, Filter extraFilter) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> trainTestSplit(Float testSize, String trainStart, String trainEnd, String testStart, String testEnd, String description) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> trainTestSplit(Float testSize, String trainStart, String trainEnd, String testStart, String testEnd, String description, Long seed, StatisticsConfig statisticsConfig, Map<String,String> readOptions, FilterLogic extraFilterLogic, Filter extraFilter) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> trainValidationTestSplit(Float validationSize, Float testSize, String trainStart, String trainEnd, String validationStart, String validationEnd, String testStart, String testEnd, String description) throws IOException, FeatureStoreException, ParseException
public List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> trainValidationTestSplit(Float validationSize, Float testSize, String trainStart, String trainEnd, String validationStart, String validationEnd, String testStart, String testEnd, String description, Long seed, StatisticsConfig statisticsConfig, Map<String,String> readOptions, FilterLogic extraFilterLogic, Filter extraFilter) throws IOException, FeatureStoreException, ParseException
public void purgeTrainingData(Integer version) throws FeatureStoreException, IOException
FeatureStoreExceptionIOExceptionpublic void purgeAllTrainingData()
throws FeatureStoreException,
IOException
FeatureStoreExceptionIOExceptionpublic void deleteTrainingDataset(Integer version) throws FeatureStoreException, IOException
FeatureStoreExceptionIOExceptionpublic void deleteAllTrainingDatasets()
throws FeatureStoreException,
IOException
FeatureStoreExceptionIOExceptionpublic void addTrainingDatasetTag(Integer version, String name, Object value) throws FeatureStoreException, IOException
version - tag versionname - name of the tagvalue - value of the tag. The value of a tag can be any valid json - primitives, arrays or json objectsFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic Map<String,Object> getTrainingDatasetTags(Integer version) throws FeatureStoreException, IOException
version - tag versionFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic Object getTrainingDatasetTag(Integer version, String name) throws FeatureStoreException, IOException
version - tag versionname - name of the tagFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic void deleteTrainingDatasetTag(Integer version, String name) throws FeatureStoreException, IOException
version - tag versionname - name of the tag to be deletedFeatureStoreException - FeatureStoreExceptionIOException - IOExceptionpublic HashSet<String> getPrimaryKeys() throws SQLException, IOException, FeatureStoreException, ClassNotFoundException
SQLException - SQLExceptionIOException - IOExceptionFeatureStoreException - FeatureStoreExceptionClassNotFoundException - ClassNotFoundExceptionpublic Integer getId()
public void setId(Integer id)
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 List<TrainingDatasetFeature> getFeatures()
public void setFeatures(List<TrainingDatasetFeature> features)
public FeatureStore getFeatureStore()
public void setFeatureStore(FeatureStore featureStore)
public Query getQuery()
public void setQuery(Query query)
public String getType()
public void setType(String type)
Copyright © 2023. All rights reserved.