public class FeatureStore extends FeatureStoreBase<Query>
DEFAULT_VERSION, featureGroupApi, LOGGER, storageConnectorApi, trainingDatasetApi
Constructor and Description |
---|
FeatureStore() |
Modifier and Type | Method and Description |
---|---|
com.logicalclocks.hsfs.spark.ExternalFeatureGroup.ExternalFeatureGroupBuilder |
createExternalFeatureGroup()
Create external feature group builder object.
|
com.logicalclocks.hsfs.spark.FeatureGroup.FeatureGroupBuilder |
createFeatureGroup()
Create feature group builder object.
|
FeatureView.FeatureViewBuilder |
createFeatureView() |
com.logicalclocks.hsfs.spark.ExternalFeatureGroup.ExternalFeatureGroupBuilder |
createOnDemandFeatureGroup()
Deprecated.
|
com.logicalclocks.hsfs.spark.StreamFeatureGroup.StreamFeatureGroupBuilder |
createStreamFeatureGroup()
Create stream feature group builder object.
|
com.logicalclocks.hsfs.spark.TrainingDataset.TrainingDatasetBuilder |
createTrainingDataset()
Deprecated.
|
StorageConnector.AdlsConnector |
getAdlsConnector(String name)
Get a previously created Adls compliant storage connector from the feature store.
|
StorageConnector.BigqueryConnector |
getBigqueryConnector(String name)
Get a previously created BigQuery compliant storage connector from the feature store.
|
ExternalFeatureGroup |
getExternalFeatureGroup(String name)
Get an external feature group object with default version `1` from the feature store.
|
ExternalFeatureGroup |
getExternalFeatureGroup(@NonNull String name,
@NonNull Integer version)
Get an external feature group object from the feature store.
|
scala.collection.Seq<ExternalFeatureGroup> |
getExternalFeatureGroups(@NonNull String name)
Get a list of all versions of an external feature group from the feature store.
|
FeatureGroup |
getFeatureGroup(String name)
Get a feature group object with default version `1` from the feature store.
|
FeatureGroup |
getFeatureGroup(@NonNull String name,
@NonNull Integer version)
Get a feature group object from the feature store.
|
scala.collection.Seq<FeatureGroup> |
getFeatureGroups(@NonNull String name)
Get a list of all versions of a feature group from the feature store.
|
FeatureView |
getFeatureView(String name)
Get a feature view object with the default version `1` from the selected feature store.
|
FeatureView |
getFeatureView(@NonNull String name,
@NonNull Integer version)
Get a feature view object from the selected feature store.
|
StorageConnector.GcsConnector |
getGcsConnector(String name)
Get a previously created Gcs compliant storage connector from the feature store.
|
StorageConnector.HopsFsConnector |
getHopsFsConnector(String name)
Get a previously created HopsFs compliant storage connector from the feature store.
|
StorageConnector.JdbcConnector |
getJdbcConnector(String name)
Get a previously created JDBC compliant storage connector from the feature store.
|
StorageConnector.KafkaConnector |
getKafkaConnector(String name)
Get a previously created Kafka compliant storage connector from the feature store.
|
ExternalFeatureGroup |
getOnDemandFeatureGroup(String name)
Deprecated.
|
ExternalFeatureGroup |
getOnDemandFeatureGroup(@NonNull String name,
@NonNull Integer version)
Deprecated.
|
scala.collection.Seq<ExternalFeatureGroup> |
getOnDemandFeatureGroups(@NonNull String name)
Deprecated.
|
StorageConnector.JdbcConnector |
getOnlineStorageConnector()
Get a previously created JDBC compliant storage connector from the feature store
to connect to the online feature store.
|
FeatureGroup |
getOrCreateFeatureGroup(String name,
Integer version)
Get feature group metadata object or create a new one if it doesn't exist.
|
FeatureGroup |
getOrCreateFeatureGroup(String name,
Integer version,
List<String> primaryKeys,
boolean onlineEnabled,
String eventTime)
Get feature group metadata object or create a new one if it doesn't exist.
|
FeatureGroup |
getOrCreateFeatureGroup(String name,
Integer version,
List<String> primaryKeys,
List<String> partitionKeys,
boolean onlineEnabled,
String eventTime)
Get feature group metadata object or create a new one if it doesn't exist.
|
FeatureGroup |
getOrCreateFeatureGroup(String name,
Integer version,
String description,
List<String> primaryKeys,
List<String> partitionKeys,
String hudiPrecombineKey,
boolean onlineEnabled,
TimeTravelFormat timeTravelFormat,
StatisticsConfig statisticsConfig,
String eventTime)
Get feature group metadata object or create a new one if it doesn't exist.
|
FeatureView |
getOrCreateFeatureView(String name,
Query query,
Integer version)
Get feature view metadata object or create a new one if it doesn't exist.
|
FeatureView |
getOrCreateFeatureView(String name,
Query query,
Integer version,
String description,
List<String> labels)
Get feature view metadata object or create a new one if it doesn't exist.
|
StreamFeatureGroup |
getOrCreateStreamFeatureGroup(String name,
Integer version)
Get stream feature group metadata object or create a new one if it doesn't exist.
|
StreamFeatureGroup |
getOrCreateStreamFeatureGroup(String name,
Integer version,
List<String> primaryKeys,
boolean onlineEnabled,
String eventTime)
Get stream feature group metadata object or create a new one if it doesn't exist.
|
StreamFeatureGroup |
getOrCreateStreamFeatureGroup(String name,
Integer version,
List<String> primaryKeys,
List<String> partitionKeys,
boolean onlineEnabled,
String eventTime)
Get stream feature group metadata object or create a new one if it doesn't exist.
|
StreamFeatureGroup |
getOrCreateStreamFeatureGroup(String name,
Integer version,
String description,
List<String> primaryKeys,
List<String> partitionKeys,
String hudiPrecombineKey,
boolean onlineEnabled,
StatisticsConfig statisticsConfig,
String eventTime)
Get stream feature group metadata object or create a new one if it doesn't exist.
|
StorageConnector.RedshiftConnector |
getRedshiftConnector(String name)
Get a previously created Redshift compliant storage connector from the feature store.
|
StorageConnector.S3Connector |
getS3Connector(String name)
Get a previously created S3 compliant storage connector from the feature store.
|
StorageConnector.SnowflakeConnector |
getSnowflakeConnector(String name)
Get a previously created Snowflake compliant storage connector from the feature store.
|
StorageConnector |
getStorageConnector(String name)
Get a previously created storage connector from the feature store.
|
StreamFeatureGroup |
getStreamFeatureGroup(String name)
Get a stream feature group object with default version `1` from the feature store.
|
StreamFeatureGroup |
getStreamFeatureGroup(@NonNull String name,
@NonNull Integer version)
Get a stream feature group object from the feature store.
|
TrainingDataset |
getTrainingDataset(String name)
Deprecated.
|
TrainingDataset |
getTrainingDataset(@NonNull String name,
@NonNull Integer version)
Deprecated.
|
scala.collection.Seq<TrainingDataset> |
getTrainingDatasets(@NonNull String name)
Deprecated.
|
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> |
sql(String query) |
toString
public FeatureGroup getFeatureGroup(@NonNull @NonNull String name, @NonNull @NonNull Integer version) throws FeatureStoreException, IOException
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.getFeatureGroup("electricity_prices", 1);
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 FeatureGroup getFeatureGroup(String name) throws FeatureStoreException, IOException
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.getFeatureGroup("electricity_prices");
name
- the name of the feature groupFeatureStoreException
- If unable to retrieve feature group from the feature store.IOException
- Generic IO exception.public scala.collection.Seq<FeatureGroup> getFeatureGroups(@NonNull @NonNull String name) throws FeatureStoreException, IOException
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.getFeatureGroups("electricity_prices");
getFeatureGroups
in class FeatureStoreBase<Query>
name
- the name of the feature groupFeatureStoreException
- If unable to retrieve feature group from the feature store.IOException
- Generic IO exception.public com.logicalclocks.hsfs.spark.FeatureGroup.FeatureGroupBuilder createFeatureGroup()
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureGroup.FeatureGroupBuilder = fs.createFeatureGroup()
createFeatureGroup
in class FeatureStoreBase<Query>
public FeatureGroup getOrCreateFeatureGroup(String name, Integer version) throws IOException, FeatureStoreException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureGroup fg = fs.getOrCreateFeatureGroup("fg_name", 1);
getOrCreateFeatureGroup
in class FeatureStoreBase<Query>
name
- of the feature group to retrieve or create.version
- of the feature group to retrieve or create.IOException
- Generic IO exception.FeatureStoreException
- If unable to retrieve FeatureGroup from the feature store.public FeatureGroup getOrCreateFeatureGroup(String name, Integer version, List<String> primaryKeys, boolean onlineEnabled, String eventTime) throws IOException, FeatureStoreException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureGroup fg = fs.getOrCreateFeatureGroup("fg_name", 1, primaryKeys, true, "datetime");
getOrCreateFeatureGroup
in class FeatureStoreBase<Query>
name
- of the feature group to retrieve or create.version
- of the feature group to retrieve or create.primaryKeys
- A list of feature names to be used as primary key for the
feature group. This primary key can be a composite key of multiple
features and will be used as joining key.onlineEnabled
- Define whether the feature group should be made available also in the online feature store
for low latency access.eventTime
- Name of the feature containing the event time for the features in this feature group. If
eventTime is set the feature group can be used for point-in-time joins.
The supported data types for the eventTime column are: timestamp, date and bigintIOException
- Generic IO exception.FeatureStoreException
- If unable to retrieve FeatureGroup from the feature store.public FeatureGroup getOrCreateFeatureGroup(String name, Integer version, List<String> primaryKeys, List<String> partitionKeys, boolean onlineEnabled, String eventTime) throws IOException, FeatureStoreException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureGroup fg = fs.getOrCreateFeatureGroup("fg_name", 1, primaryKeys, partitionKeys, true, "datetime");
getOrCreateFeatureGroup
in class FeatureStoreBase<Query>
name
- of the feature group to retrieve or create.version
- of the feature group to retrieve or create.primaryKeys
- A list of feature names to be used as primary key for the
feature group. This primary key can be a composite key of multiple
features and will be used as joining key.partitionKeys
- A list of feature names to be used as partition key when writing the feature data to the
offline storage.onlineEnabled
- Define whether the feature group should be made available also in the online feature store
for low latency access.eventTime
- Name of the feature containing the event time for the features in this feature group. If
eventTime is set the feature group can be used for point-in-time joins.
The supported data types for the eventTime column are: timestamp, date and bigintIOException
- Generic IO exception.FeatureStoreException
- If unable to retrieve FeatureGroup from the feature store.public FeatureGroup 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
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureGroup fg = fs.getOrCreateFeatureGroup("fg_name", 1, primaryKeys, partitionKeys, true, "datetime");
getOrCreateFeatureGroup
in class FeatureStoreBase<Query>
name
- of the feature group to retrieve or create.version
- of the feature group to retrieve or create.description
- contents of the feature group to improve discoverability for Data ScientistsprimaryKeys
- A list of feature names to be used as primary key for the
feature group. This primary key can be a composite key of multiple
features and will be used as joining key.partitionKeys
- A list of feature names to be used as partition key when writing the feature data to the
offline storage.hudiPrecombineKey
- A feature name to be used as a precombine key for the `HUDI` feature group. If feature
group has time travel format `HUDI` and hudi precombine key was not specified then
the first primary key of the feature group will be used as hudi precombine key.onlineEnabled
- Define whether the feature group should be made available also in the online feature store
for low latency access.timeTravelFormat
- Format used for time travel: `TimeTravelFormat.HUDI` or `TimeTravelFormat.NONE`.statisticsConfig
- A configuration object, to generally enable descriptive statistics computation for
this feature group, `"correlations`" to turn on feature correlation computation,
`"histograms"` to compute feature value frequencies and `"exact_uniqueness"` to compute
uniqueness, distinctness and entropy. The values should be booleans indicating the
setting. To fully turn off statistics computation pass `statisticsConfig=false`.eventTime
- Name of the feature containing the event time for the features in this feature group. If
eventTime is set the feature group can be used for point-in-time joins.
The supported data types for the eventTime column are: timestamp, date and bigintIOException
- Generic IO exception.FeatureStoreException
- If unable to retrieve FeatureGroup from the feature store.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");
<
getStreamFeatureGroup
in class FeatureStoreBase<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<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.spark.StreamFeatureGroup.StreamFeatureGroupBuilder createStreamFeatureGroup()
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StreamFeatureGroup.StreamFeatureGroupBuilder = fs.createStreamFeatureGroup()
createStreamFeatureGroup
in class FeatureStoreBase<Query>
public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version) throws IOException, FeatureStoreException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureGroup fg = fs.getOrCreateStreamFeatureGroup("fg_name", 1);
getOrCreateStreamFeatureGroup
in class FeatureStoreBase<Query>
name
- of the feature group to retrieve or create.version
- of the feature group to retrieve or create.IOException
- Generic IO exception.FeatureStoreException
- If unable to retrieve StreamFeatureGroup from the feature store.public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version, List<String> primaryKeys, boolean onlineEnabled, String eventTime) throws IOException, FeatureStoreException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureGroup fg = fs.getOrCreateStreamFeatureGroup("fg_name", 1, primaryKeys, true, "datetime");
getOrCreateStreamFeatureGroup
in class FeatureStoreBase<Query>
name
- Name of the feature group to retrieve or create.version
- Version of the feature group to retrieve or create.primaryKeys
- A list of feature names to be used as primary key for the
feature group. This primary key can be a composite key of multiple
features and will be used as joining key.onlineEnabled
- Define whether the feature group should be made available also in the online feature store
for low latency access.eventTime
- Name of the feature containing the event time for the features in this feature group. If
eventTime is set the feature group can be used for point-in-time joins.
The supported data types for the eventTime column are: timestamp, date and bigintIOException
- Generic IO exception.FeatureStoreException
- If unable to retrieve StreamFeatureGroup from the feature store.public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version, List<String> primaryKeys, List<String> partitionKeys, boolean onlineEnabled, String eventTime) throws IOException, FeatureStoreException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureGroup fg = fs.getOrCreateStreamFeatureGroup("fg_name", 1, primaryKeys, partitionKeys, true,
"datetime");
getOrCreateStreamFeatureGroup
in class FeatureStoreBase<Query>
name
- Name of the feature group to retrieve or create.version
- Version of the feature group to retrieve or create.primaryKeys
- A list of feature names to be used as primary key for the
feature group. This primary key can be a composite key of multiple
features and will be used as joining key.partitionKeys
- A list of feature names to be used as partition key when writing the feature data to the
offline storage.onlineEnabled
- Define whether the feature group should be made available also in the online feature store
for low latency access.eventTime
- Name of the feature containing the event time for the features in this feature group. If
eventTime is set the feature group can be used for point-in-time joins.
The supported data types for the eventTime column are: timestamp, date and bigintIOException
- Generic IO exception.FeatureStoreException
- If unable to retrieve StreamFeatureGroup from the feature store.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
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StreamFeatureGroup fg = fs.getOrCreateStreamFeatureGroup("fg_name", 1, primaryKeys,
partitionKeys, true, "datetime");
getOrCreateStreamFeatureGroup
in class FeatureStoreBase<Query>
name
- of the feature group to retrieve or create.version
- of the feature group to retrieve or create.description
- contents of the feature group to improve discoverability for Data ScientistsprimaryKeys
- A list of feature names to be used as primary key for the
feature group. This primary key can be a composite key of multiple
features and will be used as joining key.partitionKeys
- A list of feature names to be used as partition key when writing the feature data to the
offline storage.hudiPrecombineKey
- A feature name to be used as a precombine key for the `HUDI` feature group. If feature
group has time travel format `HUDI` and hudi precombine key was not specified then
the first primary key of the feature group will be used as hudi precombine key.onlineEnabled
- Define whether the feature group should be made available also in the online feature store
for low latency access.statisticsConfig
- A configuration object, to generally enable descriptive statistics computation for
this feature group, `"correlations`" to turn on feature correlation computation,
`"histograms"` to compute feature value frequencies and `"exact_uniqueness"` to compute
uniqueness, distinctness and entropy. The values should be booleans indicating the
setting. To fully turn off statistics computation pass `statisticsConfig=false`.eventTime
- Name of the feature containing the event
time for the features in this feature group. If eventTime is set
the feature group can be used for point-in-time joins.IOException
- Generic IO exception.FeatureStoreException
- If unable to retrieve FeatureGroup from the feature store.public com.logicalclocks.hsfs.spark.ExternalFeatureGroup.ExternalFeatureGroupBuilder createExternalFeatureGroup()
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
ExternalFeatureGroup.ExternalFeatureGroupBuilder = fs.createExternalFeatureGroup()
createExternalFeatureGroup
in class FeatureStoreBase<Query>
@Deprecated public com.logicalclocks.hsfs.spark.ExternalFeatureGroup.ExternalFeatureGroupBuilder createOnDemandFeatureGroup()
public scala.collection.Seq<ExternalFeatureGroup> getExternalFeatureGroups(@NonNull @NonNull String name) throws FeatureStoreException, IOException
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.getExternalFeatureGroups("external_fg_name");
getExternalFeatureGroups
in class FeatureStoreBase<Query>
name
- The name of the feature group.FeatureStoreException
- If unable to retrieve feature group from the feature store.IOException
- Generic IO exception.public ExternalFeatureGroup getExternalFeatureGroup(@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();
ExternalFeatureGroup fg = fs.getExternalFeatureGroup("external_fg_name", 1);
getExternalFeatureGroup
in class FeatureStoreBase<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 ExternalFeatureGroup getExternalFeatureGroup(String name) throws FeatureStoreException, IOException
Getting external 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();
ExternalFeatureGroup fg = fs.getExternalFeatureGroup("external_fg_name");
getExternalFeatureGroup
in class FeatureStoreBase<Query>
name
- the name of the feature groupFeatureStoreException
- If unable to retrieve feature group from the feature store.IOException
- Generic IO exception.public StorageConnector getStorageConnector(String name) throws FeatureStoreException, IOException
Storage connectors encapsulate all information needed for the execution engine to read and write to a specific storage.
If you want to connect to the online feature store, see the getOnlineStorageConnector` method to get the JDBC connector for the Online Feature Store.
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector sc = fs.getStorageConnector("sc_name");
getStorageConnector
in class FeatureStoreBase<Query>
name
- Name of the storage connector to retrieve.FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.public StorageConnector.HopsFsConnector getHopsFsConnector(String name) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector.HopsFsConnector hfsSc = fs.getHopsFsConnector("hfs_sc_name");
getHopsFsConnector
in class FeatureStoreBase<Query>
name
- Name of the storage connector to retrieve.FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.public StorageConnector.JdbcConnector getJdbcConnector(String name) throws FeatureStoreException, IOException
If you want to connect to the online feature store, see the getOnlineStorageConnector` method to get the JDBC connector for the Online Feature Store.
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector.JdbcConnector jdbcSc = fs.getJdbcConnector("jdbc_sc_name");
getJdbcConnector
in class FeatureStoreBase<Query>
name
- Name of the jdbc storage connector to retrieve.FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.public StorageConnector.JdbcConnector getOnlineStorageConnector() throws FeatureStoreException, IOException
//get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector.JdbcConnector onlineSc = fs.getOnlineStorageConnector("online_sc_name");
getOnlineStorageConnector
in class FeatureStoreBase<Query>
FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.public StorageConnector.S3Connector getS3Connector(String name) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector.S3Connector s3Sc = fs.getS3Connector("s3_sc_name");
getS3Connector
in class FeatureStoreBase<Query>
name
- Name of the storage connector to retrieve.FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.public StorageConnector.RedshiftConnector getRedshiftConnector(String name) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector.RedshiftConnector rshSc = fs.getRedshiftConnector("rsh_sc_name");
getRedshiftConnector
in class FeatureStoreBase<Query>
name
- Name of the storage connector to retrieve.FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.public StorageConnector.SnowflakeConnector getSnowflakeConnector(String name) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector.SnowflakeConnector snflSc = fs.getSnowflakeConnector("snfl_sc_name");
getSnowflakeConnector
in class FeatureStoreBase<Query>
name
- Name of the storage connector to retrieve.FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.public StorageConnector.AdlsConnector getAdlsConnector(String name) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector.AdlsConnectorr adlslSc = fs.getAdlsConnector("adls_sc_name");
getAdlsConnector
in class FeatureStoreBase<Query>
name
- Name of the storage connector to retrieve.FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.public StorageConnector.KafkaConnector getKafkaConnector(String name) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector.KafkaConnector kafkaSc = fs.getKafkaConnector("kafka_sc_name");
getKafkaConnector
in class FeatureStoreBase<Query>
name
- Name of the storage connector to retrieve.FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.public StorageConnector.BigqueryConnector getBigqueryConnector(String name) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector.BigqueryConnector bigqSc = fs.getBigqueryConnector("bigq_sc_name");
getBigqueryConnector
in class FeatureStoreBase<Query>
name
- Name of the storage connector to retrieve.FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.public StorageConnector.GcsConnector getGcsConnector(String name) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
StorageConnector.GcsConnector gcsSc = fs.getGcsConnector("gsc_sc_name");
getGcsConnector
in class FeatureStoreBase<Query>
name
- Name of the storage connector to retrieve.FeatureStoreException
- If unable to retrieve StorageConnector from the feature store.IOException
- Generic IO exception.@Deprecated public ExternalFeatureGroup getOnDemandFeatureGroup(@NonNull @NonNull String name, @NonNull @NonNull Integer version) throws FeatureStoreException, IOException
FeatureStoreException
IOException
@Deprecated public ExternalFeatureGroup getOnDemandFeatureGroup(String name) throws FeatureStoreException, IOException
FeatureStoreException
IOException
@Deprecated public scala.collection.Seq<ExternalFeatureGroup> getOnDemandFeatureGroups(@NonNull @NonNull String name) throws FeatureStoreException, IOException
FeatureStoreException
IOException
public FeatureView.FeatureViewBuilder createFeatureView()
createFeatureView
in class FeatureStoreBase<Query>
public FeatureView getOrCreateFeatureView(String name, Query query, Integer version) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureView fv = fs.getOrCreateFeatureView("fv_name", query, 1);
getOrCreateFeatureView
in class FeatureStoreBase<Query>
name
- Name of the feature view.query
- Query object.version
- Version of the feature view.FeatureStoreException
- If unable to retrieve FeatureView from the feature store.IOException
- Generic IO exception.public FeatureView getOrCreateFeatureView(String name, Query query, Integer version, String description, List<String> labels) throws FeatureStoreException, IOException
// get feature store handle
FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
FeatureView fv = fs.getOrCreateFeatureView("fv_name", query, 1, description, labels);
"datetime");
getOrCreateFeatureView
in class FeatureStoreBase<Query>
name
- Name of the feature view.query
- Query object.version
- Version of the feature view.description
- Description of the feature view.labels
- List of label features.FeatureStoreException
- If unable to retrieve FeatureView from the feature store.IOException
- Generic IO exception.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<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");
getFeatureView
in class FeatureStoreBase<Query>
name
- Name of the feature view.FeatureStoreException
- If unable to retrieve FeatureView from the feature store.IOException
- Generic IO exception.public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> sql(String query)
sql
in class FeatureStoreBase<Query>
@Deprecated public com.logicalclocks.hsfs.spark.TrainingDataset.TrainingDatasetBuilder createTrainingDataset()
@Deprecated public TrainingDataset getTrainingDataset(@NonNull @NonNull String name, @NonNull @NonNull Integer version) throws FeatureStoreException, IOException
FeatureStoreBase
getTrainingDataset
in class FeatureStoreBase<Query>
name
- name of the training datasetversion
- version to getFeatureStoreException
IOException
@Deprecated public TrainingDataset getTrainingDataset(String name) throws FeatureStoreException, IOException
FeatureStoreBase
getTrainingDataset
in class FeatureStoreBase<Query>
name
- name of the training datasetFeatureStoreException
IOException
@Deprecated public scala.collection.Seq<TrainingDataset> getTrainingDatasets(@NonNull @NonNull String name) throws FeatureStoreException, IOException
FeatureStoreBase
getTrainingDatasets
in class FeatureStoreBase<Query>
name
- name of the training datasetFeatureStoreException
IOException
Copyright © 2023. All rights reserved.