|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.IndexSegmentBuilder.AbstractSimpleNodeData
com.bigdata.btree.IndexSegmentBuilder.SimpleNodeData
protected static class IndexSegmentBuilder.SimpleNodeData
A class that can be used to (de-)serialize the data for a node without any of the logic for operations on the node.
Note: All node addresses that are internal to a node and reference a
child node (vs a leaf) are correct relative to the start of the
IndexSegmentRegion.NODE region. This is an unavoidable
consequence of serializing the nodes before we have the total offset to
the start of the IndexSegmentRegion.NODE region.
IndexSegmentRegion,
IndexSegmentAddressManager| Constructor Summary | |
|---|---|
IndexSegmentBuilder.SimpleNodeData(int level,
int m,
boolean hasVersionTimestamps)
|
|
| Method Summary | |
|---|---|
long |
getChildAddr(int index)
Return the persistent addresses of the specified child node. |
int |
getChildCount()
The #of children of this node. |
long |
getChildEntryCount(int index)
Return the #of tuples spanned by the indicated child of this node. |
long |
getSpannedTupleCount()
The #of tuples spanned by this node. |
boolean |
hasVersionTimestamps()
Return true iff the leaves maintain tuple revision
timestamps. |
boolean |
isLeaf()
True iff this is a leaf node. |
protected void |
reset(int max)
Reset counters and flags so that the node may be reused. |
| Methods inherited from class com.bigdata.btree.IndexSegmentBuilder.AbstractSimpleNodeData |
|---|
data, getKeyCount, getKeys, getMaximumVersionTimestamp, getMinimumVersionTimestamp, isCoded, isReadOnly |
| 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 |
|---|
data, getMaximumVersionTimestamp, getMinimumVersionTimestamp, isCoded, isReadOnly |
| Methods inherited from interface com.bigdata.btree.data.IKeysData |
|---|
getKeyCount, getKeys |
| Constructor Detail |
|---|
public IndexSegmentBuilder.SimpleNodeData(int level,
int m,
boolean hasVersionTimestamps)
| Method Detail |
|---|
public final long getSpannedTupleCount()
ISpannedTupleCountDataIKeysData.getKeyCount() or
ILeafData.getValueCount().
getSpannedTupleCount in interface ISpannedTupleCountDatapublic final long getChildAddr(int index)
IChildData
getChildAddr in interface IChildDataindex - The index of the child in [0:nkeys].
public final long getChildEntryCount(int index)
ISpannedTupleCountDataISpannedTupleCountData.getSpannedTupleCount()
. These data are used to support fast computation of the index at which a
key occurs and the #of entries in a given key range.
getChildEntryCount in interface ISpannedTupleCountDataindex - The index of the child in [0:nkeys].
protected void reset(int max)
reset in class IndexSegmentBuilder.AbstractSimpleNodeDatamax - The new limit on the #of children to fill on this node.public final int getChildCount()
IChildDataIAbstractNodeData#getKeyCount()+1
getChildCount in interface IChildDatapublic final boolean isLeaf()
IAbstractNodeData
isLeaf in interface IAbstractNodeDatapublic final boolean hasVersionTimestamps()
IAbstractNodeDatatrue iff the leaves maintain tuple revision
timestamps. When true, the minimum and maximum tuple
revision timestamp for a node or leaf are available from
IAbstractNodeData.getMinimumVersionTimestamp() and
IAbstractNodeData.getMaximumVersionTimestamp().
hasVersionTimestamps in interface IAbstractNodeData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||