Class IndexesCacheHolder
java.lang.Object
org.springframework.data.aerospike.query.cache.IndexesCacheHolder
- All Implemented Interfaces:
IndexesCache,IndexesCacheUpdater
- Author:
- Anastasiia Smirnova
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllIndexesForField(IndexedField indexedField) Get all indexes for a given indexed field object.Get index from the indexes cache by providing an index key.booleanhasIndexFor(IndexedField indexedField) Boolean indication of whether an index exists for the given indexed fieldvoidupdate(IndexesInfo cache) UpdateIndexesInfocache.
-
Constructor Details
-
IndexesCacheHolder
public IndexesCacheHolder()
-
-
Method Details
-
getIndex
Description copied from interface:IndexesCacheGet index from the indexes cache by providing an index key.- Specified by:
getIndexin interfaceIndexesCache- Parameters:
indexKey- Index key to search by.- Returns:
- Optional
Index
-
getAllIndexesForField
Description copied from interface:IndexesCacheGet all indexes for a given indexed field object.- Specified by:
getAllIndexesForFieldin interfaceIndexesCache- Parameters:
indexedField- Indexed field to search by.- Returns:
- List of indexes matching the indexed field properties.
-
hasIndexFor
Description copied from interface:IndexesCacheBoolean indication of whether an index exists for the given indexed field- Specified by:
hasIndexForin interfaceIndexesCache- Parameters:
indexedField- Indexed field to search by- Returns:
- True if there is an index for the given indexed field.
-
update
Description copied from interface:IndexesCacheUpdaterUpdateIndexesInfocache.- Specified by:
updatein interfaceIndexesCacheUpdater- Parameters:
cache- to be used
-