Class StreamFeatureGroup<T>

java.lang.Object
com.logicalclocks.hsfs.FeatureGroupBase<List<T>>
com.logicalclocks.hsfs.StreamFeatureGroup<T>

public class StreamFeatureGroup<T> extends FeatureGroupBase<List<T>>
  • Field Details

  • Constructor Details

  • Method Details

    • save

      public void save() throws FeatureStoreException, IOException
      Save the feature group metadata on Hopsworks. This method is idempotent, if the feature group already exists the method does nothing.
      Throws:
      FeatureStoreException
      IOException
    • save

      public void save(Map<String,String> writeOptions, JobConfiguration materializationJobConfiguration) throws FeatureStoreException, IOException
      Save the feature group metadata on Hopsworks. This method is idempotent, if the feature group already exists, the method does nothing
      Parameters:
      writeOptions - Options to provide to the materialization job
      materializationJobConfiguration - Resource configuration for the materialization job
      Throws:
      FeatureStoreException
      IOException
    • insertStream

      public List<T> insertStream(List<T> featureData) throws Exception
      Specified by:
      insertStream in class FeatureGroupBase<List<T>>
      Throws:
      Exception
    • insertStream

      public List<T> insertStream(List<T> featureData, Map<String,String> writeOptions) throws Exception
      Specified by:
      insertStream in class FeatureGroupBase<List<T>>
      Throws:
      Exception
    • selectFeatures

      public Query selectFeatures(List<Feature> features)
      Select a subset of features of the feature group and return a query object. The query can be used to construct joins of feature groups or create a feature view with a subset of features of the feature group.
      Parameters:
      features - List of Feature meta data objects.
      Returns:
      Query object.
    • select

      public Query select(List<String> features)
      Select a subset of features of the feature group and return a query object. The query can be used to construct joins of feature groups or create a feature view with a subset of features of the feature group.
      Parameters:
      features - List of Feature names.
      Returns:
      Query object.
    • selectAll

      public Query selectAll()
      Select all features of the feature group and return a query object. The query can be used to construct joins of feature groups or create a feature view with a subset of features of the feature group.
      Returns:
      Query object.
    • selectExceptFeatures

      public Query selectExceptFeatures(List<Feature> features)
      Select all features including primary key and event time feature of the feature group except provided `features` and return a query object. The query can be used to construct joins of feature groups or create a feature view with a subset of features of the feature group.
      Parameters:
      features - List of Feature meta data objects.
      Returns:
      Query object.
    • selectExcept

      public Query selectExcept(List<String> features)
      Select all features including primary key and event time feature of the feature group except provided `features` and return a query object. The query can be used to construct joins of feature groups or create a feature view with a subset of features of the feature group.
      Parameters:
      features - List of Feature names.
      Returns:
      Query object.