V
- the value type of the collection being indexedpublic interface LongIndexKeyExtractor<V extends java.io.Serializable> extends KeyExtractor<LongKey,V>
BlueIndex
class to extract longs from each value in the BlueCollection
.
The value can then be quickly found using those longs. 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 |
---|---|
default java.util.List<LongKey> |
extractKeys(V value)
Extracts data from the given value in the form of index keys.
|
java.util.List<java.lang.Long> |
extractLongsForIndex(V value)
Extracts longs from the given value in order to create index keys.
|
default java.lang.Class<LongKey> |
getType() |
default java.lang.Class<LongKey> getType()
getType
in interface KeyExtractor<LongKey,V extends java.io.Serializable>
default java.util.List<LongKey> extractKeys(V value)
KeyExtractor
BlueIndex
class
uses this method to map the resulting index keys to this value.extractKeys
in interface KeyExtractor<LongKey,V extends java.io.Serializable>
value
- the value from which index keys are to be extractedjava.util.List<java.lang.Long> extractLongsForIndex(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