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 BlueIndex<K extends ValueKey,V extends java.io.Serializable>
BlueCollection
that allows you to query for values faster based on specific data in those values.
BlueDB extracts data from each value in the collection and creates a mapping from that data to the values that contain that
data. Currently this only supports the retrieval of values using a specific index key, but could be extended in the future to
provide more powerful index based queries.Modifier and Type | Method and Description |
---|---|
java.util.List<V> |
get(K key) |
K |
getLastKey() |
java.util.List<V> get(K key) throws BlueDbException
key
- a key that maps to the desired value(s)BlueDbException
- if any problems occurK getLastKey()