V - the value type of the collection being indexedpublic interface IntegerIndexKeyExtractor<V extends java.io.Serializable> extends KeyExtractor<IntegerKey,V>
BlueIndex class to extract integers from each value in the BlueCollection.
The value can then be quickly found using those integers. Note that key extractors are serialized by BlueIndex
and for this reason it is NOT recommended to use lambdas or anonymous
inner classes to define key extractors.| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Integer> |
extractIntsForIndex(V value)
Extracts integers from the given value in order to create index keys.
|
default java.util.List<IntegerKey> |
extractKeys(V value)
Extracts data from the given value in the form of index keys.
|
default java.lang.Class<IntegerKey> |
getType() |
default java.lang.Class<IntegerKey> getType()
getType in interface KeyExtractor<IntegerKey,V extends java.io.Serializable>default java.util.List<IntegerKey> extractKeys(V value)
KeyExtractorBlueIndex class
uses this method to map the resulting index keys to this value.extractKeys in interface KeyExtractor<IntegerKey,V extends java.io.Serializable>value - the value from which index keys are to be extractedjava.util.List<java.lang.Integer> extractIntsForIndex(V value)
BlueIndex class
uses this method to map the resulting index keys to this value.value - the value from which index keys are to be extracted