protected static class IndexSegmentBuilder.SimpleNodeData extends IndexSegmentBuilder.AbstractSimpleNodeData implements INodeData
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 and Description |
|---|
IndexSegmentBuilder.SimpleNodeData(int level,
int m,
boolean hasVersionTimestamps) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
data, getKeyCount, getKeys, getMaximumVersionTimestamp, getMinimumVersionTimestamp, isCoded, isReadOnlyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdata, getMaximumVersionTimestamp, getMinimumVersionTimestamp, isCoded, isReadOnlygetKeyCount, getKeyspublic IndexSegmentBuilder.SimpleNodeData(int level,
int m,
boolean hasVersionTimestamps)
public final long getSpannedTupleCount()
ISpannedTupleCountDataIKeysData.getKeyCount() or
ILeafData.getValueCount().getSpannedTupleCount in interface ISpannedTupleCountDatapublic final long getChildAddr(int index)
IChildDatagetChildAddr 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()+1getChildCount in interface IChildDatapublic final boolean isLeaf()
IAbstractNodeDataisLeaf 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 IAbstractNodeDataCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.