T
- resourcepublic interface Indexer<T> extends Store<T>
Modifier and Type | Method and Description |
---|---|
void |
addIndexers(Map<String,Function<T,List<String>>> indexers)
Add additional indexers to the store.
|
List<T> |
byIndex(String indexName,
String indexKey)
Lists objects that match on the named indexing function with the exact key.
|
Map<String,Function<T,List<String>>> |
getIndexers()
Return the indexers registered with the store.
|
List<T> |
index(String indexName,
T obj)
Retrieve list of obejcts that match on the named indexing function.
|
List<String> |
indexKeys(String indexName,
String indexKey)
Returns the set of keys that match on the named indexing function.
|
List<T> index(String indexName, T obj)
indexName
- specific indexing functionobj
- objectList<String> indexKeys(String indexName, String indexKey)
indexName
- specific indexing functionindexKey
- specific index keyList<T> byIndex(String indexName, String indexKey)
indexName
- specific indexing functionindexKey
- specific index keyMap<String,Function<T,List<String>>> getIndexers()
Copyright © 2015–2020 Red Hat. All rights reserved.