public class DurableBackgroundCleanupIndexTreeTaskV2 extends IgniteDataTransferObject implements DurableBackgroundTask<Long>
| Modifier and Type | Class and Description |
|---|---|
static class |
DurableBackgroundCleanupIndexTreeTaskV2.H2TreeFactory
Factory for creating index trees.
|
| Modifier and Type | Field and Description |
|---|---|
static DurableBackgroundCleanupIndexTreeTaskV2.H2TreeFactory |
idxTreeFactory
Index tree index factory.
|
| Constructor and Description |
|---|
DurableBackgroundCleanupIndexTreeTaskV2()
Default constructor for
Externalizable. |
DurableBackgroundCleanupIndexTreeTaskV2(@Nullable String grpName,
String cacheName,
String idxName,
String oldTreeName,
String newTreeName,
int segments,
@Nullable H2Tree[] trees)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
cacheName() |
void |
cancel() |
static long |
destroyIndexTrees(CacheGroupContext grpCtx,
RootPage rootPage,
String cacheName,
String treeName,
String idxName,
int segment)
Destroying index trees.
|
IgniteInternalFuture<DurableBackgroundTaskResult<Long>> |
executeAsync(GridKernalContext ctx) |
static Map<Integer,RootPage> |
findIndexRootPages(CacheGroupContext grpCtx,
String cacheName,
String treeName,
int segments)
Finding the root pages of the index.
|
String |
idxName() |
String |
name() |
boolean |
needToRename() |
protected void |
readExternalData(byte protoVer,
ObjectInput in) |
static void |
renameIndexRootPages(CacheGroupContext grpCtx,
String cacheName,
String oldTreeName,
String newTreeName,
int segments)
Renaming the root index pages.
|
void |
renameIndexTrees(CacheGroupContext grpCtx)
Renames index's trees.
|
static Map<Integer,RootPage> |
toRootPages(H2Tree[] trees)
Create index root pages based on its trees.
|
String |
toString() |
protected void |
writeExternalData(ObjectOutput out) |
getProtocolVersion, readExternal, toList, toSet, writeExternalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconvertAfterRestoreIfNeededpublic static DurableBackgroundCleanupIndexTreeTaskV2.H2TreeFactory idxTreeFactory
public DurableBackgroundCleanupIndexTreeTaskV2(@Nullable
@Nullable String grpName,
String cacheName,
String idxName,
String oldTreeName,
String newTreeName,
int segments,
@Nullable
@Nullable H2Tree[] trees)
grpName - Cache group name.cacheName - Cache name.idxName - Index name.oldTreeName - Old name of underlying index tree name.newTreeName - New name of underlying index tree name.segments - Number of segments.trees - Index trees.public DurableBackgroundCleanupIndexTreeTaskV2()
Externalizable.protected void writeExternalData(ObjectOutput out) throws IOException
writeExternalData in class IgniteDataTransferObjectIOExceptionprotected void readExternalData(byte protoVer,
ObjectInput in)
throws IOException,
ClassNotFoundException
readExternalData in class IgniteDataTransferObjectIOExceptionClassNotFoundExceptionpublic String name()
name in interface DurableBackgroundTask<Long>public void cancel()
cancel in interface DurableBackgroundTask<Long>public IgniteInternalFuture<DurableBackgroundTaskResult<Long>> executeAsync(GridKernalContext ctx)
executeAsync in interface DurableBackgroundTask<Long>public void renameIndexTrees(CacheGroupContext grpCtx) throws IgniteCheckedException
H2TreeIndex.destroy0(boolean, boolean).grpCtx - Cache group context.IgniteCheckedException - If failed to rename index's trees.public static long destroyIndexTrees(CacheGroupContext grpCtx, RootPage rootPage, String cacheName, String treeName, String idxName, int segment) throws IgniteCheckedException
grpCtx - Cache group context.rootPage - Index root page.cacheName - Cache name.treeName - Name of underlying index tree name.idxName - Index name.segment - Segment number.IgniteCheckedException - If failed.public static Map<Integer,RootPage> findIndexRootPages(CacheGroupContext grpCtx, String cacheName, String treeName, int segments) throws IgniteCheckedException
grpCtx - Cache group context.cacheName - Cache name.treeName - Name of underlying index tree name.segments - Number of segments.IgniteCheckedException - If failed.public static void renameIndexRootPages(CacheGroupContext grpCtx, String cacheName, String oldTreeName, String newTreeName, int segments) throws IgniteCheckedException
grpCtx - Cache group context.cacheName - Cache name.oldTreeName - Old name of underlying index tree name.newTreeName - New name of underlying index tree name.segments - Number of segments.IgniteCheckedException - If failed.public static Map<Integer,RootPage> toRootPages(H2Tree[] trees)
trees - Index trees.public String cacheName()
public String idxName()
public boolean needToRename()
true if needs to rename index trees, false otherwise.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025