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 objects 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.
|
void |
removeIndexer(String name)
Remove the named index
|
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()
void addIndexers(Map<String,Function<T,List<String>>> indexers)
indexers - indexers to addvoid removeIndexer(String name)
name - Copyright © 2015–2022 Red Hat. All rights reserved.