Interface UpdateableFeatureIndex<F>

Type Parameters:
F - type of the features
All Superinterfaces:
es.uam.eps.ir.ranksys.core.index.FeatureIndex<F>
All Known Subinterfaces:
FastUpdateableFeatureIndex<F>
All Known Implementing Classes:
SimpleFastUpdateableFeatureIndex

public interface UpdateableFeatureIndex<F>
extends es.uam.eps.ir.ranksys.core.index.FeatureIndex<F>
Updateable index for a set of features.
  • Method Summary

    Modifier and Type Method Description
    int addFeature​(F f)
    Adds a new feature
    default void addFeatures​(java.util.stream.Stream<F> features)
    Adds a set of features to the index

    Methods inherited from interface es.uam.eps.ir.ranksys.core.index.FeatureIndex

    containsFeature, getAllFeatures, numFeatures
  • Method Details

    • addFeature

      int addFeature​(F f)
      Adds a new feature
      Parameters:
      f - the new feature
      Returns:
      the index of the new feature.
    • addFeatures

      default void addFeatures​(java.util.stream.Stream<F> features)
      Adds a set of features to the index
      Parameters:
      features - a stream containing the features.