com.bigdata.mdi
Class MetadataIndex.MetadataIndexCheckpoint

java.lang.Object
  extended by com.bigdata.btree.Checkpoint
      extended by com.bigdata.mdi.MetadataIndex.MetadataIndexCheckpoint
All Implemented Interfaces:
Externalizable, Serializable
Enclosing class:
MetadataIndex

public static class MetadataIndex.MetadataIndexCheckpoint
extends Checkpoint

Extends the Checkpoint record to store the next partition identifier to be assigned by the metadata index.

Version:
$Id: MetadataIndex.java 4582 2011-05-31 19:12:53Z thompsonbry $
Author:
Bryan Thompson
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.bigdata.btree.Checkpoint
Checkpoint.IndexTypeEnum
 
Constructor Summary
MetadataIndex.MetadataIndexCheckpoint()
          De-serialization constructor.
MetadataIndex.MetadataIndexCheckpoint(BTree btree)
           
MetadataIndex.MetadataIndexCheckpoint(IndexMetadata metadata)
          Create the initial checkpoint record for the initial metadata index.
MetadataIndex.MetadataIndexCheckpoint(IndexMetadata metadata, Checkpoint oldCheckpoint)
          Create the initial checkpoint record when the metadata index overflows onto a new backing store.
 
Method Summary
 int getNextPartitionId()
          The immutable value of the nextPartitionId counter stored in the metadata record.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class com.bigdata.btree.Checkpoint
getBloomFilterAddr, getCheckpointAddr, getCounter, getEntryCount, getGlobalDepth, getHeight, getIndexType, getLeafCount, getMetadataAddr, getNodeCount, getRecordVersion, getRootAddr, hasCheckpointAddr, load, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetadataIndex.MetadataIndexCheckpoint

public MetadataIndex.MetadataIndexCheckpoint()
De-serialization constructor.


MetadataIndex.MetadataIndexCheckpoint

public MetadataIndex.MetadataIndexCheckpoint(BTree btree)
Parameters:
btree -

MetadataIndex.MetadataIndexCheckpoint

public MetadataIndex.MetadataIndexCheckpoint(IndexMetadata metadata)
Create the initial checkpoint record for the initial metadata index.

Parameters:
metadata -

MetadataIndex.MetadataIndexCheckpoint

public MetadataIndex.MetadataIndexCheckpoint(IndexMetadata metadata,
                                             Checkpoint oldCheckpoint)
Create the initial checkpoint record when the metadata index overflows onto a new backing store.

Parameters:
metadata -
Method Detail

getNextPartitionId

public int getNextPartitionId()
The immutable value of the nextPartitionId counter stored in the metadata record.


readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class Checkpoint
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class Checkpoint
Throws:
IOException


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