partitionKeys, String hudiPrecombineKey, boolean onlineEnabled, TimeTravelFormat timeTravelFormat,
+ StatisticsConfig statisticsConfig, String topicName, String notificationTopicName, String eventTime)
+ throws IOException, FeatureStoreException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ /**
+ * Get a stream feature group object from the feature store.
+ *
+ * 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.
+ *
+ *
+ * {@code
+ * // get feature store handle
+ * FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
+ * FeatureGroup fg = fs.getStreamFeatureGroup("electricity_prices", 1);
+ * }
+ *
+ *
+ * @param name the name of the feature group
+ * @return StreamFeatureGroup The stream feature group metadata object.
+ * @throws FeatureStoreException If unable to retrieve feature group from the feature store.
+ * @throws IOException Generic IO exception.
+ */
+ @Override
+ public Object getStreamFeatureGroup(String name) throws FeatureStoreException, IOException {
+ LOGGER.info("VersionWarning: No version provided for getting feature group `" + name + "`, defaulting to `"
+ + DEFAULT_VERSION + "`.");
+ return getStreamFeatureGroup(name, DEFAULT_VERSION);
+ }
+
+ /**
+ * Get a stream feature group object from the feature store.
+ *
+ * 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.
+ *
+ *
+ * {@code
+ * // get feature store handle
+ * FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
+ * FeatureGroup fg = fs.getStreamFeatureGroup("electricity_prices", 1);
+ * }
+ *
+ *
+ * @param name the name of the feature group
+ * @param version the version of the feature group
+ * @return StreamFeatureGroup The stream feature group metadata object.
+ * @throws FeatureStoreException If unable to retrieve feature group from the feature store.
+ * @throws IOException Generic IO exception.
+ */
+ @Override
+ public StreamFeatureGroup getStreamFeatureGroup(@NonNull String name, @NonNull Integer version)
+ throws FeatureStoreException, IOException {
+ return featureGroupEngine.getStreamFeatureGroup(this, name, version);
+ }
+
+ @Override
+ public Object createStreamFeatureGroup() {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version)
+ throws IOException, FeatureStoreException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version, List primaryKeys,
+ boolean onlineEnabled, String eventTime) throws IOException, FeatureStoreException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version, List primaryKeys,
+ List partitionKeys, boolean onlineEnabled, String eventTime) throws IOException, FeatureStoreException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public StreamFeatureGroup getOrCreateStreamFeatureGroup(String name, Integer version, String description,
+ List primaryKeys, List partitionKeys, String hudiPrecombineKey, boolean onlineEnabled,
+ StatisticsConfig statisticsConfig, String eventTime) throws IOException, FeatureStoreException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object createExternalFeatureGroup() {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object createFeatureView() {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ /**
+ * Get a feature view object from the selected feature store.
+ *
+ *
+ * {@code
+ * // get feature store handle
+ * FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
+ * FeatureView fv = fs.getFeatureView("fv_name", 1);
+ * }
+ *
+ *
+ * @param name Name of the feature view.
+ * @param version Version to get.
+ * @return FeatureView The feature view metadata object.
+ * @throws FeatureStoreException If unable to retrieve FeatureView from the feature store.
+ * @throws IOException Generic IO exception.
+ */
+ public FeatureView getFeatureView(@NonNull String name, @NonNull Integer version)
+ throws FeatureStoreException, IOException {
+ return featureViewEngine.get(this, name, version);
+ }
+
+ /**
+ * Get a feature view object from the selected feature store.
+ *
+ *
+ * {@code
+ * // get feature store handle
+ * FeatureStore fs = HopsworksConnection.builder().build().getFeatureStore();
+ * FeatureView fv = fs.getFeatureView("fv_name", 1);
+ * }
+ *
+ *
+ * @param name Name of the feature view.
+ * @return FeatureView The feature view metadata object.
+ * @throws FeatureStoreException If unable to retrieve FeatureView from the feature store.
+ * @throws IOException Generic IO exception.
+ */
+ public FeatureView getFeatureView(String name) throws FeatureStoreException, IOException {
+ LOGGER.info("VersionWarning: No version provided for getting feature view `" + name + "`, defaulting to `"
+ + DEFAULT_VERSION + "`.");
+ return getFeatureView(name, DEFAULT_VERSION);
+ }
+
+ @Override
+ public Object getOrCreateFeatureView(String name, Query query, Integer version)
+ throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getOrCreateFeatureView(String name, Query query, Integer version, String description,
+ List labels) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getExternalFeatureGroup(@NonNull String name, @NonNull Integer version)
+ throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getExternalFeatureGroup(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public StorageConnector getStorageConnector(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getHopsFsConnector(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getExternalFeatureGroups(@NonNull String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object sql(String name) {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getJdbcConnector(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getS3Connector(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getRedshiftConnector(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getSnowflakeConnector(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getAdlsConnector(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for beam");
+ }
+
+ @Override
+ public Object getKafkaConnector(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getBigqueryConnector(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getOnlineStorageConnector() throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getGcsConnector(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public TrainingDatasetBase getTrainingDataset(@NonNull String name, @NonNull Integer version)
+ throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public TrainingDatasetBase getTrainingDataset(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getTrainingDatasets(@NonNull String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+}
diff --git a/java/beam/src/main/java/com/logicalclocks/hsfs/beam/FeatureView.java b/java/beam/src/main/java/com/logicalclocks/hsfs/beam/FeatureView.java
new file mode 100644
index 000000000..48c54f127
--- /dev/null
+++ b/java/beam/src/main/java/com/logicalclocks/hsfs/beam/FeatureView.java
@@ -0,0 +1,152 @@
+/*
+ * Copyright (c) 2023. Hopsworks AB
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and limitations under the License.
+ *
+ */
+
+package com.logicalclocks.hsfs.beam;
+
+import com.logicalclocks.hsfs.FeatureStoreException;
+import com.logicalclocks.hsfs.FeatureViewBase;
+import com.logicalclocks.hsfs.beam.constructor.Query;
+import org.apache.beam.sdk.values.PCollection;
+
+import java.io.IOException;
+import java.text.ParseException;
+import java.util.Map;
+
+public class FeatureView extends FeatureViewBase> {
+ @Override
+ public void addTag(String name, Object value) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Map getTags() throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getTag(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public void deleteTag(String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public void addTrainingDatasetTag(Integer version, String name, Object value)
+ throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Map getTrainingDatasetTags(Integer version) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public Object getTrainingDatasetTag(Integer version, String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public void deleteTrainingDatasetTag(Integer version, String name) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public void delete() throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public void clean(FeatureStore featureStore, String featureViewName, Integer featureViewVersion)
+ throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public FeatureView update(FeatureView other) throws FeatureStoreException, IOException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public String getBatchQuery() throws FeatureStoreException, IOException, ParseException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public String getBatchQuery(String startTime, String endTime)
+ throws FeatureStoreException, IOException, ParseException {
+ throw new UnsupportedOperationException("Not supported for Beam");
+ }
+
+ @Override
+ public PCollection