Responsible for creating indices for property values used in queries. This interface is designed for usage in datastores that don't automatically create indices and require the application to create the indices manually.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
deindex(java.lang.Object value, K primaryKey) Removes the index for the given value and key |
|
java.lang.String |
getIndexName(java.lang.Object value) @param value The indexed value |
|
void |
index(java.lang.Object value, K primaryKey) Creates an index for the given value to the specified key |
|
java.util.List<K> |
query(java.lang.Object value) Queries the given value and returns the keys |
|
java.util.List<K> |
query(java.lang.Object value, int offset, int max) Queries the given value and returns the keys |
Removes the index for the given value and key
value
- The valueprimaryKey
- The key
value
- The indexed valueCreates an index for the given value to the specified key
value
- The valueprimaryKey
- The keyQueries the given value and returns the keys
value
- The value to query byQueries the given value and returns the keys
value
- The value to query byoffset
- The offset position to start frommax
- The maximum number of records