Class AbstractClientIndex
- java.lang.Object
-
- org.apache.ignite.internal.cache.query.index.AbstractIndex
-
- org.apache.ignite.internal.cache.query.index.sorted.client.AbstractClientIndex
-
- All Implemented Interfaces:
Index
- Direct Known Subclasses:
ClientIndex
public abstract class AbstractClientIndex extends AbstractIndex
Base class for all index implementations for Ignite client nodes. Client nodes don't persist any data, but they still need to know about indexes structures for planning of queries that starts on client nodes.
-
-
Constructor Summary
Constructors Constructor Description AbstractClientIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(CacheDataRow row)Checks whether index handles specified cache row.voiddestroy(boolean softDelete)Destroy index.voidonUpdate(@Nullable CacheDataRow oldRow, @Nullable CacheDataRow newRow, boolean prevRowAvailable)Callback that runs when the underlying cache is updated.IgniteExceptionunsupported()-
Methods inherited from class org.apache.ignite.internal.cache.query.index.AbstractIndex
markIndexRebuild, rebuildInProgress, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.cache.query.index.Index
id, indexDefinition, name
-
-
-
-
Method Detail
-
canHandle
public boolean canHandle(CacheDataRow row)
Checks whether index handles specified cache row.- Parameters:
row- Cache row.- Returns:
- Whether index handles specified cache row
-
onUpdate
public 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
-
destroy
public void destroy(boolean softDelete)
Destroy index.- Parameters:
softDelete- iftruethen perform logical deletion.
-
unsupported
public IgniteException unsupported()
- Returns:
- Exception about unsupported operation.
-
-