com.bigdata.journal
Class DropIndexTask

java.lang.Object
  extended by com.bigdata.journal.AbstractTask
      extended by com.bigdata.journal.DropIndexTask
All Implemented Interfaces:
ITask, Callable

public class DropIndexTask
extends AbstractTask

Drop a named index (unisolated write operation).

Note: the dropped index will continue to be visible to unisolated readers or read-commmitted isolated operations (since they read from the most recent committed state) until the next commit. However, unisolated writers that execute after the index has been dropped will NOT be able to see the index.

Version:
$Id: DropIndexTask.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Nested Class Summary
 
Nested classes/interfaces inherited from class com.bigdata.journal.AbstractTask
AbstractTask.DelegateTask<T>, AbstractTask.InnerReadWriteTxServiceCallable, AbstractTask.InnerWriteServiceCallable<T>, AbstractTask.ResubmitException
 
Field Summary
 
Fields inherited from class com.bigdata.journal.AbstractTask
checkpointNanoTime, concurrencyManager, DEBUG, INFO, isReadWriteTx, log, nanoTime_assignedWorker, nanoTime_beginWork, nanoTime_finishedWork, nanoTime_submitTask, readOnly, resourceManager, taskCounters, timestamp, transactionManager, tx
 
Constructor Summary
DropIndexTask(IConcurrencyManager concurrencyManager, String name)
           
 
Method Summary
 Object doTask()
          Drop the named index.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DropIndexTask

public DropIndexTask(IConcurrencyManager concurrencyManager,
                     String name)
Method Detail

doTask

public Object doTask()
              throws Exception
Drop the named index.

Specified by:
doTask in class AbstractTask
Returns:
A Boolean value that is true iff the index was pre-existing at the time that this task executed and therefore was dropped. false is returned iff the index did not exist at the time that this task was executed.
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.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.