com.bigdata.resources
Class SplitUtility.BuildIndexSegmentSplitTask
java.lang.Object
com.bigdata.journal.AbstractTask<T>
com.bigdata.resources.AbstractResourceManagerTask<BuildResult>
com.bigdata.resources.SplitUtility.BuildIndexSegmentSplitTask
- All Implemented Interfaces:
- ITask<BuildResult>, Callable<BuildResult>
- Enclosing class:
- SplitUtility
protected static class SplitUtility.BuildIndexSegmentSplitTask
- extends AbstractResourceManagerTask<BuildResult>
Task used to build an IndexSegment from a restricted key-range of
an index during a SplitIndexPartitionTask. This is a compacting
merge since we want as much of the data for the index as possible in a
single IndexSegment.
- Version:
- $Id: SplitUtility.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
| Fields inherited from class com.bigdata.journal.AbstractTask |
checkpointNanoTime, concurrencyManager, isReadWriteTx, nanoTime_assignedWorker, nanoTime_beginWork, nanoTime_finishedWork, nanoTime_submitTask, readOnly, taskCounters, timestamp, transactionManager, tx |
|
Method Summary |
protected BuildResult |
doTask()
Note: The generated IndexSegment is on the retentionSet and
MUST be removed from that set once it has been incorporated in a
restart safe manner into an index partition view or once the task
fails. |
| Methods inherited from class com.bigdata.journal.AbstractTask |
assertResource, assertRunning, assertUnisolated, call, clearLoggingContext, dropIndex, getCommitTime, getIndex, getJournal, getOnlyResource, getResource, getResourceManager, getTaskCounters, getTaskName, getTimestamp, isResource, registerIndex, setupLoggingContext, toString |
SplitUtility.BuildIndexSegmentSplitTask
public SplitUtility.BuildIndexSegmentSplitTask(com.bigdata.resources.ViewMetadata vmd,
Split split,
Event parentEvent)
- Builds an
IndexSegment from the lastCommitTime of the old
journal.
- Parameters:
vmd - split -
doTask
protected BuildResult doTask()
throws Exception
- Note: The generated
IndexSegment is on the retentionSet and
MUST be removed from that set once it has been incorporated in a
restart safe manner into an index partition view or once the task
fails.
- Specified by:
doTask in class AbstractTask<BuildResult>
- Returns:
- The object that will be returned by
AbstractTask.call() iff the
operation succeeds.
- Throws:
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.- See Also:
StoreManager.retentionSetAdd(java.util.UUID)
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.