Interface Indexer<ApiType>
- All Superinterfaces:
Store<ApiType>
- All Known Implementing Classes:
Cache
Indexer extends Store interface and adds index/de-index methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd additional indexers to the store.ByIndex lists object that match on the named indexing function with the exact key.Return the indexers registered with the store.Retrieve list of objects that match on the named indexing function.IndexKeys returns the set of keys that match on the named indexing function.
-
Method Details
-
index
Retrieve list of objects that match on the named indexing function.- Parameters:
indexName- specific indexing function- Returns:
- matched objects
-
indexKeys
IndexKeys returns the set of keys that match on the named indexing function.- Parameters:
indexName- specific indexing functionindexKey- specific index key- Returns:
- matched keys
-
byIndex
ByIndex lists object that match on the named indexing function with the exact key.- Parameters:
indexName- specific indexing functionindexKey- specific index key- Returns:
- matched objects
-
getIndexers
Return the indexers registered with the store.- Returns:
- registered indexers
-
addIndexers
Add additional indexers to the store.- Parameters:
indexers- indexers to add
-