Interface Index
-
- All Known Subinterfaces:
InlineIndex,SortedSegmentedIndex
- All Known Implementing Classes:
AbstractClientIndex,AbstractIndex,ClientIndex,InlineIndexImpl
public interface IndexBasic interface for Ignite indexes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanHandle(CacheDataRow row)Checks whether index handles specified cache row.voiddestroy(boolean softDelete)Destroy index.UUIDid()Unique ID.IndexDefinitionindexDefinition()Stringname()Index name.voidonUpdate(@Nullable CacheDataRow oldRow, @Nullable CacheDataRow newRow, boolean prevRowAvailable)Callback that runs when the underlying cache is updated.<T extends Index>
Tunwrap(Class<T> clazz)Provides a standard way to access the underlying concrete index implementation to provide access to further, proprietary features.
-
-
-
Method Detail
-
id
UUID id()
Unique ID.
-
name
String name()
Index name.
-
canHandle
boolean canHandle(CacheDataRow row) throws IgniteCheckedException
Checks whether index handles specified cache row.- Parameters:
row- Cache row.- Returns:
- Whether index handles specified cache row
- Throws:
IgniteCheckedException
-
onUpdate
void onUpdate(@Nullable @Nullable CacheDataRow oldRow, @Nullable @Nullable CacheDataRow newRow, boolean prevRowAvailable) throws IgniteCheckedExceptionCallback that runs when the underlying cache is updated.- Parameters:
oldRow- Cache row that was replaced with newRow.newRow- Cache row that was stored.prevRowAvailable- Whether oldRow available.- Throws:
IgniteCheckedException
-
unwrap
<T extends Index> T unwrap(Class<T> clazz)
Provides a standard way to access the underlying concrete index implementation to provide access to further, proprietary features.
-
destroy
void destroy(boolean softDelete)
Destroy index.- Parameters:
softDelete- iftruethen perform logical deletion.
-
indexDefinition
IndexDefinition indexDefinition()
- Returns:
- Index definition.
-
-