public class MaintenanceRebuildIndexUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INDEX_REBUILD_MNTC_TASK_NAME
Index rebuild maintenance task name.
|
static String |
INDEX_REBUILD_PARAMETER_SEPARATOR
Separator for index rebuild maintenance task parameters.
|
static String |
INDEX_REBUILD_PARAMETER_SEPARATOR_REGEX
Regex for
INDEX_REBUILD_PARAMETER_SEPARATOR. |
| Constructor and Description |
|---|
MaintenanceRebuildIndexUtils() |
| Modifier and Type | Method and Description |
|---|---|
static MaintenanceTask |
mergeTasks(MaintenanceTask oldTask,
MaintenanceTask newTask)
Merges two index rebuild maintenance tasks concatenating their parameters.
|
static List<MaintenanceRebuildIndexTarget> |
parseMaintenanceTaskParameters(@Nullable String parameters)
Parses
MaintenanceTask.parameters() to a list of a MaintenanceRebuildIndexTargets. |
static MaintenanceTask |
toMaintenanceTask(int cacheId,
String idxName)
Constructs an index rebuild maintenance task.
|
static MaintenanceTask |
toMaintenanceTask(Map<Integer,Set<String>> cacheToIndexes)
Constructs an index rebuild maintenance task based on a map cacheId -> indexes.
|
public static final String INDEX_REBUILD_MNTC_TASK_NAME
public static final String INDEX_REBUILD_PARAMETER_SEPARATOR
public static final String INDEX_REBUILD_PARAMETER_SEPARATOR_REGEX
INDEX_REBUILD_PARAMETER_SEPARATOR.public static List<MaintenanceRebuildIndexTarget> parseMaintenanceTaskParameters(@Nullable @Nullable String parameters)
MaintenanceTask.parameters() to a list of a MaintenanceRebuildIndexTargets.parameters - Task's parameters.public static MaintenanceTask toMaintenanceTask(int cacheId, String idxName)
cacheId - Cache id.idxName - Index name.public static MaintenanceTask toMaintenanceTask(Map<Integer,Set<String>> cacheToIndexes)
Map<Integer, Set<String>> cacheToIndexes = new HashMap<>();
cacheToIndexes.put(CU.cacheId("some-cache"), singleton("some-index"));
MaintenanceTask task = toMaintenanceTask(cacheToIndexes);
cacheToIndexes - cacheId -> indexes map.public static MaintenanceTask mergeTasks(MaintenanceTask oldTask, MaintenanceTask newTask)
oldTask - Old tasknewTask - New task.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023