public class RegisterIndexTask extends AbstractTask<UUID>
Note: The return value of doTask()
is the UUID
of the named
index. You can test this value to determine whether the index was created
based on the supplied IIndex
object or whether the index was
pre-existing at the time that this operation was executed.
Note: the registered index will NOT be visible to unisolated readers or isolated operations until the next commit. However, unisolated writers that execute after the index has been registered will be able to see the registered index.
DropIndexTask
AbstractTask.DelegateTask<T>, AbstractTask.InnerReadWriteTxServiceCallable<T>, AbstractTask.InnerWriteServiceCallable<T>, AbstractTask.ResubmitException
checkpointNanoTime, concurrencyManager, isReadWriteTx, log, nanoTime_assignedWorker, nanoTime_beginWork, nanoTime_finishedWork, nanoTime_submitTask, readOnly, resourceManager, taskCounters, timestamp, transactionManager, tx
Constructor and Description |
---|
RegisterIndexTask(IConcurrencyManager concurrencyManager,
String name,
IndexMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
protected UUID |
doTask()
Create the named index if it does not exist.
|
assertResource, assertRunning, assertUnisolated, call, clearLoggingContext, dropIndex, getCommitTime, getIndex, getJournal, getOnlyResource, getResource, getResourceManager, getTaskCounters, getTaskName, getTimestamp, isResource, registerIndex, setupLoggingContext, toString
public RegisterIndexTask(IConcurrencyManager concurrencyManager, String name, IndexMetadata metadata)
journal
- name
- The name under which to register the index.metadata
- The index metadata.
The LocalPartitionMetadata.getResources()
property on
the IndexMetadata.getPartitionMetadata()
SHOULD NOT be
set. The correct IResourceMetadata
[] will be assigned
when the index is registered on the IDataService
.
protected UUID doTask() throws Exception
doTask
in class AbstractTask<UUID>
UUID
of the named index.Exception
- The exception that will be thrown by AbstractTask.call()
iff the
operation fails.InterruptedException
- This exception SHOULD be thrown if
Thread.interrupted()
becomes true during
execution.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.