public interface PropertyValueIndexer<K>
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 |
|---|---|---|
|
public void |
deindex(Object value, K primaryKey)Removes the index for the given value and key |
|
public String |
getIndexName(Object value)
|
|
public void |
index(Object value, K primaryKey)Creates an index for the given value to the specified key |
|
public List<K> |
query(Object value)Queries the given value and returns the keys |
|
public List<K> |
query(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 by