K - the key type of the index or the type of data that the collection is being indexed on. It must be a concretion of
ValueKey (UUIDKey, StringKey, LongKey, or IntegerKey).V - the value type of the collection being indexedpublic interface KeyExtractor<K extends ValueKey,V extends java.io.Serializable>
extends java.io.Serializable
BlueIndex class to extract data in the form of index keys from each value in
the BlueCollection. The value can then be quickly found using those index keys.
IntegerIndexKeyExtractor,
LongIndexKeyExtractor, StringIndexKeyExtractor, UUIDIndexKeyExtractor. 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<K> |
extractKeys(V value)
Extracts data from the given value in the form of index keys.
|
java.lang.Class<K> |
getType() |
java.util.List<K> extractKeys(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 extractedjava.lang.Class<K> getType()