com.bigdata.journal
Class CompactTask.CopyIndexTask

java.lang.Object
  extended by com.bigdata.journal.CompactTask.CopyIndexTask
All Implemented Interfaces:
Callable<Void>
Enclosing class:
CompactTask

protected class CompactTask.CopyIndexTask
extends Object
implements Callable<Void>

Copy an index to the new journal.

Version:
$Id: CompactTask.java 2547 2010-03-24 20:44:07Z thompsonbry $
Author:
Bryan Thompson

Field Summary
protected  Name2Addr.Entry entry
          An Name2Addr.Entry from the Name2Addr index for an index defined on the CompactTask.oldJournal.
protected  Journal newJournal
          The new journal.
 
Constructor Summary
CompactTask.CopyIndexTask(Journal newJournal, Name2Addr.Entry entry)
           
 
Method Summary
 Void call()
          Creates and index on the newJournal, copies the data from the index on the old journal, and then registers the new index on the newJournal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newJournal

protected final Journal newJournal
The new journal.


entry

protected final Name2Addr.Entry entry
An Name2Addr.Entry from the Name2Addr index for an index defined on the CompactTask.oldJournal.

Constructor Detail

CompactTask.CopyIndexTask

public CompactTask.CopyIndexTask(Journal newJournal,
                                 Name2Addr.Entry entry)
Parameters:
newJournal - The new journal.
entry - An Name2Addr.Entry from the Name2Addr index for an index defined on the CompactTask.oldJournal.
Method Detail

call

public Void call()
          throws Exception
Creates and index on the newJournal, copies the data from the index on the old journal, and then registers the new index on the newJournal.

Specified by:
call in interface Callable<Void>
Throws:
Exception


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