com.bigdata.btree
Class IndexSegmentBuilder.AbstractSimpleNodeData

java.lang.Object
  extended by com.bigdata.btree.IndexSegmentBuilder.AbstractSimpleNodeData
All Implemented Interfaces:
IAbstractNodeData, IDataRecordAccess
Direct Known Subclasses:
IndexSegmentBuilder.SimpleLeafData, IndexSegmentBuilder.SimpleNodeData
Enclosing class:
IndexSegmentBuilder

protected abstract static class IndexSegmentBuilder.AbstractSimpleNodeData
extends Object
implements IAbstractNodeData

Abstract base class for classes used to construct and serialize nodes and leaves written onto the index segment.

Author:
Bryan Thompson

Constructor Summary
protected IndexSegmentBuilder.AbstractSimpleNodeData(int level, int m)
           
 
Method Summary
 AbstractFixedByteArrayBuffer data()
          The coded (aka compressed) data.
 int getKeyCount()
           
 IRaba getKeys()
           
 long getMaximumVersionTimestamp()
          The most recent tuple revision timestamp associated with any tuple spanned by this node or leaf.
 long getMinimumVersionTimestamp()
          The earliest tuple revision timestamp associated with any tuple spanned by this node or leaf.
 boolean isCoded()
          No.
 boolean isReadOnly()
          Yes (however, note that the IndexSegmentBuilder directly accesses and modified the internal data structures).
protected  void reset(int max)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.bigdata.btree.data.IAbstractNodeData
hasVersionTimestamps, isLeaf
 

Constructor Detail

IndexSegmentBuilder.AbstractSimpleNodeData

protected IndexSegmentBuilder.AbstractSimpleNodeData(int level,
                                                     int m)
Method Detail

reset

protected void reset(int max)
Parameters:
max - The #of children to be assigned to this node -or- the #of tuples to be assigned to a leaf.

getKeyCount

public final int getKeyCount()

getKeys

public final IRaba getKeys()

isReadOnly

public final boolean isReadOnly()
Yes (however, note that the IndexSegmentBuilder directly accesses and modified the internal data structures).

Specified by:
isReadOnly in interface IAbstractNodeData

isCoded

public final boolean isCoded()
No.

Specified by:
isCoded in interface IAbstractNodeData

data

public final AbstractFixedByteArrayBuffer data()
Description copied from interface: IAbstractNodeData
The coded (aka compressed) data.

Specified by:
data in interface IAbstractNodeData
Specified by:
data in interface IDataRecordAccess

getMaximumVersionTimestamp

public final long getMaximumVersionTimestamp()
Description copied from interface: IAbstractNodeData
The most recent tuple revision timestamp associated with any tuple spanned by this node or leaf. If there are NO tuples for the leaf, then this MUST return Long.MIN_VALUE since the initial value of the maximum version timestamp is always the smallest possible long integer.

Specified by:
getMaximumVersionTimestamp in interface IAbstractNodeData

getMinimumVersionTimestamp

public final long getMinimumVersionTimestamp()
Description copied from interface: IAbstractNodeData
The earliest tuple revision timestamp associated with any tuple spanned by this node or leaf. If there are NO tuples for the leaf, then this MUST return Long.MAX_VALUE since the initial value of the minimum version timestamp is always the largest possible long integer.

Specified by:
getMinimumVersionTimestamp in interface IAbstractNodeData


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