F - type of the featurespublic interface FastFeatureIndex<F> extends FeatureIndex<F>
| Modifier and Type | Method and Description |
|---|---|
default boolean |
containsFeature(F f)
Checks whether the index contains a feature.
|
int |
feature2fidx(F f)
Returns the index assigned to the feature.
|
default <V> Tuple2io<V> |
feature2fidx(org.jooq.lambda.tuple.Tuple2<F,V> tuple)
Applies FastFeatureIndex::feature2fidx to the first element of the tuple.
|
default Tuple2id |
feature2fidx(Tuple2od<F> tuple)
Applies FastFeatureIndex::feature2fidx to the first element of the tuple.
|
F |
fidx2feature(int fidx)
Returns the feature represented with the index.
|
default Tuple2od<F> |
fidx2feature(Tuple2id tuple)
Applies FastFeatureIndex::fidx2feature to the first element of the tuple.
|
default <V> org.jooq.lambda.tuple.Tuple2<F,V> |
fidx2feature(Tuple2io<V> tuple)
Applies FastFeatureIndex::fidx2feature to the first element of the tuple.
|
default Stream<F> |
getAllFeatures()
Retrieves a stream of the indexed features.
|
default IntStream |
getAllFidx()
Gets all the indices of the features.
|
numFeaturesdefault boolean containsFeature(F f)
FeatureIndexcontainsFeature in interface FeatureIndex<F>f - featuredefault Stream<F> getAllFeatures()
FeatureIndexgetAllFeatures in interface FeatureIndex<F>default IntStream getAllFidx()
int feature2fidx(F f)
f - featureF fidx2feature(int fidx)
fidx - feature indexdefault <V> Tuple2io<V> feature2fidx(org.jooq.lambda.tuple.Tuple2<F,V> tuple)
V - type of valuetuple - feature-value tupledefault <V> org.jooq.lambda.tuple.Tuple2<F,V> fidx2feature(Tuple2io<V> tuple)
V - type of valuetuple - fidx-value tupledefault Tuple2id feature2fidx(Tuple2od<F> tuple)
tuple - feature-double tupleCopyright © 2016. All rights reserved.