I - type of the itemsF - type of the featuresV - type of the information about item-feature pairspublic abstract class AbstractFastFeatureData<I,F,V> extends Object implements FastFeatureData<I,F,V>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFastFeatureData(FastItemIndex<I> ii,
FastFeatureIndex<F> fi)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFeature(F f)
Checks whether the index contains a feature.
|
boolean |
containsItem(I i)
Checks whether the index contains an item.
|
int |
feature2fidx(F f)
Returns the index assigned to the feature.
|
F |
fidx2feature(int fidx)
Returns the feature represented with the index.
|
Stream<F> |
getAllFeatures()
Retrieves a stream of the indexed features.
|
Stream<I> |
getAllItems()
Retrieves a stream of the indexed items.
|
Stream<org.jooq.lambda.tuple.Tuple2<I,V>> |
getFeatureItems(F f)
Returns a stream of items with the feature.
|
Stream<F> |
getFeaturesWithItems()
Returns a stream of features with items.
|
Stream<org.jooq.lambda.tuple.Tuple2<F,V>> |
getItemFeatures(I i)
Returns a stream of features of the item.
|
Stream<I> |
getItemsWithFeatures()
Returns a stream of items with features.
|
I |
iidx2item(int iidx)
Returns the item represented with the index.
|
int |
item2iidx(I i)
Returns the index assigned to the item.
|
int |
numFeatures()
Counts the number of indexed features.
|
int |
numFeatures(I i)
Returns the number of features of the item.
|
int |
numItems()
Counts the number of indexed items.
|
int |
numItems(F f)
Returns the number of items with the feature.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFidxItems, getFidxWithItems, getIidxFeatures, getIidxWithFeatures, numFeatures, numItemsnumFeaturesWithItems, numItemsWithFeaturesgetAllIidx, iidx2item, iidx2item, item2iidx, item2iidxfeature2fidx, feature2fidx, fidx2feature, fidx2feature, getAllFidxprotected AbstractFastFeatureData(FastItemIndex<I> ii, FastFeatureIndex<F> fi)
ii - item indexfi - feature indexpublic Stream<I> getItemsWithFeatures()
FeatureDatagetItemsWithFeatures in interface FeatureData<I,F,V>public Stream<F> getFeaturesWithItems()
FeatureDatagetFeaturesWithItems in interface FeatureData<I,F,V>public int numFeatures(I i)
FeatureDatanumFeatures in interface FeatureData<I,F,V>i - itempublic int numItems(F f)
FeatureDatanumItems in interface FeatureData<I,F,V>f - featurepublic Stream<org.jooq.lambda.tuple.Tuple2<I,V>> getFeatureItems(F f)
FeatureDatagetFeatureItems in interface FeatureData<I,F,V>f - featurepublic Stream<org.jooq.lambda.tuple.Tuple2<F,V>> getItemFeatures(I i)
FeatureDatagetItemFeatures in interface FeatureData<I,F,V>i - itempublic boolean containsItem(I i)
ItemIndexcontainsItem in interface ItemIndex<I>containsItem in interface FastItemIndex<I>i - itempublic int numItems()
ItemIndexpublic Stream<I> getAllItems()
ItemIndexgetAllItems in interface ItemIndex<I>getAllItems in interface FastItemIndex<I>public boolean containsFeature(F f)
FeatureIndexcontainsFeature in interface FeatureIndex<F>containsFeature in interface FastFeatureIndex<F>f - featurepublic int numFeatures()
FeatureIndexnumFeatures in interface FeatureIndex<F>public Stream<F> getAllFeatures()
FeatureIndexgetAllFeatures in interface FeatureIndex<F>getAllFeatures in interface FastFeatureIndex<F>public int item2iidx(I i)
FastItemIndexitem2iidx in interface FastItemIndex<I>i - itempublic I iidx2item(int iidx)
FastItemIndexiidx2item in interface FastItemIndex<I>iidx - item indexpublic int feature2fidx(F f)
FastFeatureIndexfeature2fidx in interface FastFeatureIndex<F>f - featurepublic F fidx2feature(int fidx)
FastFeatureIndexfidx2feature in interface FastFeatureIndex<F>fidx - feature indexCopyright © 2016. All rights reserved.