public class FeatureStore extends FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
DEFAULT_VERSION, featureGroupApi, LOGGER, storageConnectorApi, trainingDatasetApi
Constructor and Description |
---|
FeatureStore() |
Modifier and Type | Method and Description |
---|---|
Object |
createExternalFeatureGroup() |
Object |
createFeatureGroup() |
Object |
createFeatureView() |
com.logicalclocks.hsfs.flink.StreamFeatureGroup.StreamFeatureGroupBuilder |
createStreamFeatureGroup() |
Object |
getAdlsConnector(String name) |
Object |
getBigqueryConnector(String name) |
Object |
getExternalFeatureGroup(String name)
Get a external feature group object with default version `1` from the feature store.
|
Object |
getExternalFeatureGroup(@NonNull String name,
@NonNull Integer version)
Get a external feature group object from the feature store.
|
Object |
getExternalFeatureGroups(@NonNull String name) |
Object |
getFeatureGroups(@NonNull String name) |
FeatureView |
getFeatureView(String name)
Get a feature view object from the selected feature store.
|
FeatureView |
getFeatureView(@NonNull String name,
@NonNull Integer version)
Get a feature view object from the selected feature store.
|
Object |
getGcsConnector(String name) |
Object |
getHopsFsConnector(String name) |
Object |
getJdbcConnector(String name) |
Object |
getKafkaConnector(String name) |
Object |
getOnlineStorageConnector() |
Object |
getOrCreateFeatureGroup(String name,
Integer version) |
Object |
getOrCreateFeatureGroup(String name,
Integer integer,
List<String> primaryKeys,
boolean onlineEnabled,
String eventTime) |
Object |
getOrCreateFeatureGroup(String name,
Integer version,
List<String> primaryKeys,
List<String> partitionKeys,
boolean onlineEnabled,
String eventTime) |
Object |
getOrCreateFeatureGroup(String name,
Integer version,
String description,
List<String> primaryKeys,
List<String> partitionKeys,
String hudiPrecombineKey,
boolean onlineEnabled,
TimeTravelFormat timeTravelFormat,
StatisticsConfig statisticsConfig,
String eventTime) |
FeatureView |
getOrCreateFeatureView(String name,
com.logicalclocks.hsfs.flink.constructor.Query query,
Integer version) |
FeatureView |
getOrCreateFeatureView(String name,
com.logicalclocks.hsfs.flink.constructor.Query query,
Integer version,
String description,
List<String> labels) |
StreamFeatureGroup |
getOrCreateStreamFeatureGroup(String name,
Integer version) |
StreamFeatureGroup |
getOrCreateStreamFeatureGroup(String name,
Integer version,
List<String> primaryKeys,
boolean onlineEnabled,
String eventTime) |
StreamFeatureGroup |
getOrCreateStreamFeatureGroup(String name,
Integer version,
List<String> primaryKeys,
List<String> partitionKeys,
boolean onlineEnabled,
String eventTime) |
StreamFeatureGroup |
getOrCreateStreamFeatureGroup(String name,
Integer version,
String description,
List<String> primaryKeys,
List<String> partitionKeys,
String hudiPrecombineKey,
boolean onlineEnabled,
StatisticsConfig statisticsConfig,
String eventTime) |
Object |
getRedshiftConnector(String name) |
Object |
getS3Connector(String name) |
Object |
getSnowflakeConnector(String name) |
StorageConnector |
getStorageConnector(String name)
Get a list of all versions of an external feature group from the feature store.
|
StreamFeatureGroup |
getStreamFeatureGroup(String name)
Get a stream feature group object from the feature store.
|
StreamFeatureGroup |
getStreamFeatureGroup(@NonNull String name,
@NonNull Integer version)
Get a stream feature group object from the feature store.
|
TrainingDatasetBase |
getTrainingDataset(String name)
Get a training dataset object with the default version `1` from the selected feature store.
|
TrainingDatasetBase |
getTrainingDataset(@NonNull String name,
@NonNull Integer version)
Get a training dataset object from the selected feature store.
|
Object |
getTrainingDatasets(@NonNull String name)
Get all versions of a training dataset object from the selected feature store.
|
Object |
sql(String query) |
toString
public Object createFeatureGroup()
createFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
public Object getFeatureGroups(@NonNull @NonNull String name) throws FeatureStoreException, IOException
getFeatureGroups
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getOrCreateFeatureGroup(String name, Integer version) throws IOException, FeatureStoreException
getOrCreateFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
IOException
FeatureStoreException
public Object getOrCreateFeatureGroup(String name, Integer integer, List<String> primaryKeys, boolean onlineEnabled, String eventTime) throws IOException, FeatureStoreException
getOrCreateFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
IOException
FeatureStoreException
public Object getOrCreateFeatureGroup(String name, Integer version, List<String> primaryKeys, List<String> partitionKeys, boolean onlineEnabled, String eventTime) throws IOException, FeatureStoreException
getOrCreateFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
IOException
FeatureStoreException
public Object getOrCreateFeatureGroup(String name, Integer version, String description, List<String> primaryKeys, List<String> partitionKeys, String hudiPrecombineKey, boolean onlineEnabled, TimeTravelFormat timeTravelFormat, StatisticsConfig statisticsConfig, String eventTime) throws IOException, FeatureStoreException
getOrCreateFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
IOException
FeatureStoreException
public StreamFeatureGroup getStreamFeatureGroup(String name) throws FeatureStoreException, IOException
Getting a stream feature group metadata handle enables to interact with the feature group, such as read the data or use the `Query`-API to perform joins between feature groups and create feature views.
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureGroup fg = fs.getStreamFeatureGroup("electricity_prices", 1);
getStreamFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
name
- the name of the feature groupFeatureStoreException
- If unable to retrieve feature group from the feature store.IOException
- Generic IO exception.public StreamFeatureGroup getStreamFeatureGroup(@NonNull @NonNull String name, @NonNull @NonNull Integer version) throws FeatureStoreException, IOException
Getting a stream feature group metadata handle enables to interact with the feature group, such as read the data or use the `Query`-API to perform joins between feature groups and create feature views.
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureGroup fg = fs.getStreamFeatureGroup("electricity_prices", 1);
getStreamFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
name
- the name of the feature groupversion
- the version of the feature groupFeatureStoreException
- If unable to retrieve feature group from the feature store.IOException
- Generic IO exception.public com.logicalclocks.hsfs.flink.StreamFeatureGroup.StreamFeatureGroupBuilder createStreamFeatureGroup()
createStreamFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version) throws IOException, FeatureStoreException
getOrCreateStreamFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
IOException
FeatureStoreException
public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version, List<String> primaryKeys, boolean onlineEnabled, String eventTime) throws IOException, FeatureStoreException
getOrCreateStreamFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
IOException
FeatureStoreException
public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version, List<String> primaryKeys, List<String> partitionKeys, boolean onlineEnabled, String eventTime) throws IOException, FeatureStoreException
getOrCreateStreamFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
IOException
FeatureStoreException
public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version, String description, List<String> primaryKeys, List<String> partitionKeys, String hudiPrecombineKey, boolean onlineEnabled, StatisticsConfig statisticsConfig, String eventTime) throws IOException, FeatureStoreException
getOrCreateStreamFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
IOException
FeatureStoreException
public Object createExternalFeatureGroup()
createExternalFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
public Object createFeatureView()
createFeatureView
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
public StorageConnector getStorageConnector(String name) throws FeatureStoreException, IOException
FeatureStoreBase
getStorageConnector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
name
- the name of the feature groupFeatureStoreException
IOException
public Object getHopsFsConnector(String name) throws FeatureStoreException, IOException
getHopsFsConnector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getJdbcConnector(String name) throws FeatureStoreException, IOException
getJdbcConnector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getOnlineStorageConnector() throws FeatureStoreException, IOException
getOnlineStorageConnector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getGcsConnector(String name) throws FeatureStoreException, IOException
getGcsConnector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getS3Connector(String name) throws FeatureStoreException, IOException
getS3Connector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getRedshiftConnector(String name) throws FeatureStoreException, IOException
getRedshiftConnector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getSnowflakeConnector(String name) throws FeatureStoreException, IOException
getSnowflakeConnector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getAdlsConnector(String name) throws FeatureStoreException, IOException
getAdlsConnector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getKafkaConnector(String name) throws FeatureStoreException, IOException
getKafkaConnector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getBigqueryConnector(String name) throws FeatureStoreException, IOException
getBigqueryConnector
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object getExternalFeatureGroups(@NonNull @NonNull String name) throws FeatureStoreException, IOException
getExternalFeatureGroups
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public Object sql(String query)
sql
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
public TrainingDatasetBase getTrainingDataset(@NonNull @NonNull String name, @NonNull @NonNull Integer version) throws FeatureStoreException, IOException
FeatureStoreBase
getTrainingDataset
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
name
- name of the training datasetversion
- version to getFeatureStoreException
IOException
public TrainingDatasetBase getTrainingDataset(String name) throws FeatureStoreException, IOException
FeatureStoreBase
getTrainingDataset
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
name
- name of the training datasetFeatureStoreException
IOException
public Object getTrainingDatasets(@NonNull @NonNull String name) throws FeatureStoreException, IOException
FeatureStoreBase
getTrainingDatasets
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
name
- name of the training datasetFeatureStoreException
IOException
public FeatureView getOrCreateFeatureView(String name, com.logicalclocks.hsfs.flink.constructor.Query query, Integer version) throws FeatureStoreException, IOException
getOrCreateFeatureView
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public FeatureView getOrCreateFeatureView(String name, com.logicalclocks.hsfs.flink.constructor.Query query, Integer version, String description, List<String> labels) throws FeatureStoreException, IOException
getOrCreateFeatureView
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
FeatureStoreException
IOException
public FeatureView getFeatureView(@NonNull @NonNull String name, @NonNull @NonNull Integer version) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureView fv = fs.getFeatureView("fv_name", 1);
getFeatureView
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
name
- Name of the feature view.version
- Version to get.FeatureStoreException
- If unable to retrieve FeatureView from the feature store.IOException
- Generic IO exception.public FeatureView getFeatureView(String name) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureView fv = fs.getFeatureView("fv_name", 1);
getFeatureView
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
name
- Name of the feature view.FeatureStoreException
- If unable to retrieve FeatureView from the feature store.IOException
- Generic IO exception.public Object getExternalFeatureGroup(@NonNull @NonNull String name, @NonNull @NonNull Integer version) throws FeatureStoreException, IOException
FeatureStoreBase
getExternalFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
name
- the name of the feature groupversion
- the version of the feature groupFeatureStoreException
IOException
public Object getExternalFeatureGroup(String name) throws FeatureStoreException, IOException
FeatureStoreBase
getExternalFeatureGroup
in class FeatureStoreBase<com.logicalclocks.hsfs.flink.constructor.Query>
name
- the name of the feature groupFeatureStoreException
IOException
Copyright © 2023. All rights reserved.