Class IndexesCacheHolder

java.lang.Object
org.springframework.data.aerospike.query.cache.IndexesCacheHolder
All Implemented Interfaces:
IndexesCache, IndexesCacheUpdater

public class IndexesCacheHolder extends Object implements IndexesCache, IndexesCacheUpdater
Author:
Anastasiia Smirnova
  • Constructor Details

    • IndexesCacheHolder

      public IndexesCacheHolder()
  • Method Details

    • getIndex

      public Optional<Index> getIndex(IndexKey indexKey)
      Description copied from interface: IndexesCache
      Get index from the indexes cache by providing an index key.
      Specified by:
      getIndex in interface IndexesCache
      Parameters:
      indexKey - Index key to search by.
      Returns:
      Optional Index
    • getAllIndexesForField

      public List<Index> getAllIndexesForField(IndexedField indexedField)
      Description copied from interface: IndexesCache
      Get all indexes for a given indexed field object.
      Specified by:
      getAllIndexesForField in interface IndexesCache
      Parameters:
      indexedField - Indexed field to search by.
      Returns:
      List of indexes matching the indexed field properties.
    • hasIndexFor

      public boolean hasIndexFor(IndexedField indexedField)
      Description copied from interface: IndexesCache
      Boolean indication of whether an index exists for the given indexed field
      Specified by:
      hasIndexFor in interface IndexesCache
      Parameters:
      indexedField - Indexed field to search by
      Returns:
      True if there is an index for the given indexed field.
    • update

      public void update(IndexesInfo cache)
      Description copied from interface: IndexesCacheUpdater
      Update IndexesInfo cache.
      Specified by:
      update in interface IndexesCacheUpdater
      Parameters:
      cache - to be used