Class 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 Detail

      • AbstractClientIndex

        public AbstractClientIndex()
    • 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 IgniteCheckedException
        Callback 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 - if true then perform logical deletion.
      • unsupported

        public IgniteException unsupported()
        Returns:
        Exception about unsupported operation.