public class IndexBuildStatusHolder extends Object
INIT.
If all operations are completed, then the status is COMPLETED.
Status DELETE is used for persistent cache to mark at the
beginning of a checkpoint that all operations have been completed and they will be committed to it.| Modifier and Type | Class and Description |
|---|---|
static class |
IndexBuildStatusHolder.Status
Enumeration of statuses.
|
| Constructor and Description |
|---|
IndexBuildStatusHolder(boolean persistent,
boolean rebuild,
boolean recreate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
buildNewIndexes()
Getting the count of new indexes that are currently being built.
|
boolean |
delete()
Change of status to
IndexBuildStatusHolder.Status.DELETE if the current status is IndexBuildStatusHolder.Status.COMPLETE. |
IndexBuildStatusHolder.Status |
onFinishOperation(boolean rebuild)
Callback on the finish of the operation.
|
void |
onStartOperation(boolean rebuild,
boolean recreate)
Callback on the start of of the operation.
|
boolean |
persistent()
Checking if the cache is persistent.
|
boolean |
rebuild()
Checking whether rebuilding indexes is in progress.
|
boolean |
recreate() |
IndexBuildStatusHolder.Status |
status()
Getting the current status.
|
String |
toString() |
public IndexBuildStatusHolder(boolean persistent,
boolean rebuild,
boolean recreate)
persistent - Persistent cache.rebuild - True if rebuilding indexes, otherwise building a new index.recreate - True if index.bin recreating, otherwise building a new index.public void onStartOperation(boolean rebuild,
boolean recreate)
rebuild - True if rebuilding indexes, otherwise building a new index.recreate - True if index.bin recreating, false otherwise.onFinishOperation(boolean)public IndexBuildStatusHolder.Status onFinishOperation(boolean rebuild)
rebuild - True if rebuilding indexes, otherwise building a new index.onStartOperation(boolean, boolean)public boolean delete()
IndexBuildStatusHolder.Status.DELETE if the current status is IndexBuildStatusHolder.Status.COMPLETE.
Note that this will only be for persistent cache.True if successful.public IndexBuildStatusHolder.Status status()
public boolean rebuild()
True if in progress.public boolean recreate()
True if index.bin recreating, otherwise building a new index.public int buildNewIndexes()
public boolean persistent()
True if persistent.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023