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, wait
getFidxItems, getFidxWithItems, getIidxFeatures, getIidxWithFeatures, numFeatures, numItems
numFeaturesWithItems, numItemsWithFeatures
getAllIidx, iidx2item, iidx2item, item2iidx, item2iidx
feature2fidx, feature2fidx, fidx2feature, fidx2feature, getAllFidx
protected AbstractFastFeatureData(FastItemIndex<I> ii, FastFeatureIndex<F> fi)
ii
- item indexfi
- feature indexpublic Stream<I> getItemsWithFeatures()
FeatureData
getItemsWithFeatures
in interface FeatureData<I,F,V>
public Stream<F> getFeaturesWithItems()
FeatureData
getFeaturesWithItems
in interface FeatureData<I,F,V>
public int numFeatures(I i)
FeatureData
numFeatures
in interface FeatureData<I,F,V>
i
- itempublic int numItems(F f)
FeatureData
numItems
in interface FeatureData<I,F,V>
f
- featurepublic Stream<org.jooq.lambda.tuple.Tuple2<I,V>> getFeatureItems(F f)
FeatureData
getFeatureItems
in interface FeatureData<I,F,V>
f
- featurepublic Stream<org.jooq.lambda.tuple.Tuple2<F,V>> getItemFeatures(I i)
FeatureData
getItemFeatures
in interface FeatureData<I,F,V>
i
- itempublic boolean containsItem(I i)
ItemIndex
containsItem
in interface ItemIndex<I>
containsItem
in interface FastItemIndex<I>
i
- itempublic int numItems()
ItemIndex
public Stream<I> getAllItems()
ItemIndex
getAllItems
in interface ItemIndex<I>
getAllItems
in interface FastItemIndex<I>
public boolean containsFeature(F f)
FeatureIndex
containsFeature
in interface FeatureIndex<F>
containsFeature
in interface FastFeatureIndex<F>
f
- featurepublic int numFeatures()
FeatureIndex
numFeatures
in interface FeatureIndex<F>
public Stream<F> getAllFeatures()
FeatureIndex
getAllFeatures
in interface FeatureIndex<F>
getAllFeatures
in interface FastFeatureIndex<F>
public int item2iidx(I i)
FastItemIndex
item2iidx
in interface FastItemIndex<I>
i
- itempublic I iidx2item(int iidx)
FastItemIndex
iidx2item
in interface FastItemIndex<I>
iidx
- item indexpublic int feature2fidx(F f)
FastFeatureIndex
feature2fidx
in interface FastFeatureIndex<F>
f
- featurepublic F fidx2feature(int fidx)
FastFeatureIndex
fidx2feature
in interface FastFeatureIndex<F>
fidx
- feature indexCopyright © 2016. All rights reserved.