com.bigdata.btree.data
Interface IAbstractNodeData

All Superinterfaces:
IDataRecordAccess
All Known Subinterfaces:
IDirectoryData, ILeafData, INodeData, ITreeNodeData
All Known Implementing Classes:
AbstractNode, IndexSegment.ImmutableNodeFactory.ImmutableLeaf, IndexSegment.ImmutableNodeFactory.ImmutableNode, IndexSegmentBuilder.AbstractSimpleNodeData, IndexSegmentBuilder.SimpleLeafData, IndexSegmentBuilder.SimpleNodeData, Leaf, MutableBucketData, MutableDirectoryPageData, MutableLeafData, MutableNodeData, Node, ResultSet

public interface IAbstractNodeData
extends IDataRecordAccess

Interface for low-level data access.

Version:
$Id: IAbstractNodeData.java 4523 2011-05-18 18:14:45Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 AbstractFixedByteArrayBuffer data()
          The coded (aka compressed) data.
 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 hasVersionTimestamps()
          Return true iff the leaves maintain tuple revision timestamps.
 boolean isCoded()
          true iff this is a coded data structure.
 boolean isLeaf()
          True iff this is a leaf node.
 boolean isReadOnly()
          True iff this is an immutable data structure.
 

Method Detail

isLeaf

boolean isLeaf()
True iff this is a leaf node.


isReadOnly

boolean isReadOnly()
True iff this is an immutable data structure.


isCoded

boolean isCoded()
true iff this is a coded data structure.


data

AbstractFixedByteArrayBuffer data()
The coded (aka compressed) data.

Specified by:
data in interface IDataRecordAccess
Throws:
UnsupportedOperationException - unless isCoded() returns true.

hasVersionTimestamps

boolean hasVersionTimestamps()
Return true iff the leaves maintain tuple revision timestamps. When true, the minimum and maximum tuple revision timestamp for a node or leaf are available from getMinimumVersionTimestamp() and getMaximumVersionTimestamp().


getMinimumVersionTimestamp

long getMinimumVersionTimestamp()
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.

Throws:
UnsupportedOperationException - unless tuple revision timestamps are being maintained.

getMaximumVersionTimestamp

long getMaximumVersionTimestamp()
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.

Throws:
UnsupportedOperationException - unless tuple revision timestamps are being maintained.


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