Class MapIndex<K,V>
java.lang.Object
com.loomcache.server.query.MapIndex<K,V>
In-memory secondary index on a map column.
Supports different index types: SORTED (TreeMap), HASH (HashMap), BITMAP (for low-cardinality).
-
Constructor Summary
ConstructorsConstructorDescriptionMapIndex(IndexConfig config) Creates a new index with the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionLooks up keys that match the exact value.lookupPrefix(List<?> prefixValues) Looks up keys matching a leftmost prefix of a composite index.voidAdds or updates an entry in the index.rangeQuery(Object from, Object to, boolean includeFrom, boolean includeTo) Looks up keys in a range (for SORTED indexes only).voidRemoves an entry from the index.intsize()Returns the number of unique indexed values.
-
Constructor Details
-
MapIndex
Creates a new index with the specified configuration.
-
-
Method Details
-
put
-
remove
-
lookup
-
lookupPrefix
-
rangeQuery
-
size
public int size()Returns the number of unique indexed values.
-