Class SimpleFastUpdateableFeatureIndex<F>
java.lang.Object
es.uam.eps.ir.ranksys.fast.index.SimpleFastFeatureIndex<F>
es.uam.eps.ir.relison.links.data.updateable.index.fast.SimpleFastUpdateableFeatureIndex<F>
- Type Parameters:
F- type of the features
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.core.index.FeatureIndex<F>,es.uam.eps.ir.ranksys.fast.index.FastFeatureIndex<F>,FastUpdateableFeatureIndex<F>,UpdateableFeatureIndex<F>
public class SimpleFastUpdateableFeatureIndex<F> extends es.uam.eps.ir.ranksys.fast.index.SimpleFastFeatureIndex<F> implements FastUpdateableFeatureIndex<F>
Simple implementation of FastUpdateableFeatureIndex backed by a bi-map IdxIndex
-
Constructor Summary
Constructors Constructor Description SimpleFastUpdateableFeatureIndex() -
Method Summary
Modifier and Type Method Description intaddFeature(F f)Adds a new featurestatic <F> SimpleFastUpdateableFeatureIndex<F>load(java.util.stream.Stream<F> features)Creates a feature index from a stream of feature objects.Methods inherited from class es.uam.eps.ir.ranksys.fast.index.SimpleFastFeatureIndex
add, containsFeature, feature2fidx, fidx2feature, getAllFeatures, numFeaturesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastFeatureIndex
feature2fidx, feature2fidx, feature2fidx, fidx2feature, fidx2feature, fidx2feature, getAllFidxMethods inherited from interface es.uam.eps.ir.relison.links.data.updateable.index.fast.FastUpdateableFeatureIndex
containsFeature, getAllFeaturesMethods inherited from interface es.uam.eps.ir.relison.links.data.updateable.index.UpdateableFeatureIndex
addFeatures
-
Constructor Details
-
SimpleFastUpdateableFeatureIndex
public SimpleFastUpdateableFeatureIndex()
-
-
Method Details
-
addFeature
Description copied from interface:UpdateableFeatureIndexAdds a new feature- Specified by:
addFeaturein interfaceUpdateableFeatureIndex<F>- Parameters:
f- the new feature- Returns:
- the index of the new feature.
-
load
Creates a feature index from a stream of feature objects.- Type Parameters:
F- type of the features- Parameters:
features- stream of feature objects- Returns:
- a fast feature index
-