Interface Indexer<ApiType>
- Type Parameters:
ApiType
- kubernetes api type
- All Superinterfaces:
Store<ApiType>
- All Known Implementing Classes:
Cache
Indexer extends Store interface and adds index/de-index methods.
The code has been copied from the official client and modified: Indexer
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of objects by index name and index key.Return the indexers registered with the store.Returns a list of object keys by index name and index key.
-
Method Details
-
indexKeys
@NonNull @NonNull List<String> indexKeys(@NonNull @NonNull String indexName, @NonNull @NonNull String indexKey) Returns a list of object keys by index name and index key.- Parameters:
indexName
- the index nameindexKey
- the index key- Returns:
- the list of kubernetes object keys
-
byIndex
@NonNull @NonNull List<ApiType> byIndex(@NonNull @NonNull String indexName, @NonNull @NonNull String indexKey) Returns a list of objects by index name and index key.- Parameters:
indexName
- the index nameindexKey
- the index key- Returns:
- the list of kubernetes objects
-
getIndexers
Return the indexers registered with the store.- Returns:
- registered indexers
-