Interface Indexer<ApiType>

Type Parameters:
ApiType - kubernetes api type
All Superinterfaces:
Store<ApiType>
All Known Implementing Classes:
Cache

public interface Indexer<ApiType> extends Store<ApiType>
Indexer extends Store interface and adds index/de-index methods.

The code has been copied from the official client and modified: Indexer

  • 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 name
      indexKey - 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 name
      indexKey - the index key
      Returns:
      the list of kubernetes objects
    • getIndexers

      @NonNull @NonNull Map<String,Function<ApiType,List<String>>> getIndexers()
      Return the indexers registered with the store.
      Returns:
      registered indexers