|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Method Summary | |
---|---|
String |
getIndexName(Object value)
|
void |
index(Object value,
K primaryKey)
Creates an index for the given value to the specified key |
List<K> |
query(Object value)
Queries the given value and returns the keys |
List<K> |
query(Object value,
int offset,
int max)
Queries the given value and returns the keys |
Method Detail |
---|
void index(Object value, K primaryKey)
value
- The valueprimaryKey
- The keyList<K> query(Object value)
value
- The value to query by
List<K> query(Object value, int offset, int max)
value
- The value to query byoffset
- The offset position to start frommax
- The maximum number of records
String getIndexName(Object value)
value
- The indexed value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |