public class DurableBackgroundCleanupIndexTreeTaskV2 extends IgniteDataTransferObject implements DurableBackgroundTask<Long>
| Modifier and Type | Class and Description |
|---|---|
static class |
DurableBackgroundCleanupIndexTreeTaskV2.InlineIndexTreeFactory
Factory for creating index trees.
|
static class |
DurableBackgroundCleanupIndexTreeTaskV2.NoopRowHandlerFactory
A do-nothing
InlineIndexRowHandlerFactory implementation. |
| Modifier and Type | Field and Description |
|---|---|
static DurableBackgroundCleanupIndexTreeTaskV2.InlineIndexTreeFactory |
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 InlineIndexTree[] trees)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
cacheName() |
void |
cancel()
Canceling the task.
|
static long |
destroyIndexTrees(CacheGroupContext grpCtx,
RootPage rootPage,
String cacheName,
String treeName,
int segment)
Destroying index trees.
|
IgniteInternalFuture<DurableBackgroundTaskResult<Long>> |
executeAsync(GridKernalContext ctx)
Asynchronous task execution.
|
static Map<Integer,RootPage> |
findIndexRootPages(CacheGroupContext grpCtx,
String cacheName,
String treeName,
int segments)
Finding the root pages of the index.
|
String |
idxName() |
String |
name()
Getting the name of the task to identify it.
|
boolean |
needToRename() |
protected void |
readExternalData(byte protoVer,
ObjectInput in)
Load object's specific data content.
|
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(InlineIndexTree[] trees)
Create index root pages based on its trees.
|
String |
toString() |
protected void |
writeExternalData(ObjectOutput out)
Save object's specific data content.
|
getProtocolVersion, readExternal, toList, toSet, writeExternalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconvertAfterRestoreIfNeededpublic static DurableBackgroundCleanupIndexTreeTaskV2.InlineIndexTreeFactory idxTreeFactory
public DurableBackgroundCleanupIndexTreeTaskV2(@Nullable
@Nullable String grpName,
String cacheName,
String idxName,
String oldTreeName,
String newTreeName,
int segments,
@Nullable
@Nullable InlineIndexTree[] 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 IgniteDataTransferObjectout - Output object to write data content.IOException - If I/O errors occur.protected void readExternalData(byte protoVer,
ObjectInput in)
throws IOException,
ClassNotFoundException
readExternalData in class IgniteDataTransferObjectprotoVer - Input object version.in - Input object to load data content.IOException - If I/O errors occur.ClassNotFoundException - If the class for an object being restored cannot be found.public String name()
name in interface DurableBackgroundTask<Long>public void cancel()
cancel in interface DurableBackgroundTask<Long>public IgniteInternalFuture<DurableBackgroundTaskResult<Long>> executeAsync(GridKernalContext ctx)
result.executeAsync in interface DurableBackgroundTask<Long>ctx - Kernal context.public void renameIndexTrees(CacheGroupContext grpCtx) throws IgniteCheckedException
grpCtx - Cache group context.IgniteCheckedException - If failed to rename index's trees.public static long destroyIndexTrees(CacheGroupContext grpCtx, RootPage rootPage, String cacheName, String treeName, int segment) throws IgniteCheckedException
grpCtx - Cache group context.rootPage - Index root page.cacheName - Cache name.treeName - Name of underlying index tree 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(InlineIndexTree[] 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. 2.15.0 Release Date : April 25 2023