com.bigdata.btree
Class Tuple<E>

java.lang.Object
  extended by com.bigdata.btree.AbstractTuple<E>
      extended by com.bigdata.btree.Tuple<E>
All Implemented Interfaces:
ITuple<E>

public class Tuple<E>
extends AbstractTuple<E>

A key-value pair used to facilitate some iterator constructs.

Version:
$Id: Tuple.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
 
Fields inherited from class com.bigdata.btree.AbstractTuple
flags, needKeys, needVals
 
Constructor Summary
Tuple(AbstractBTree btree, int flags)
           
 
Method Summary
 int getSourceIndex()
          The index of the source from which the tuple was read.
 ITupleSerializer getTupleSerializer()
          Return the object that can be used to de-serialize the tuple.
 
Methods inherited from class com.bigdata.btree.AbstractTuple
clear, copy, copyTuple, copyTuple, copyTuple, flags, flagString, getKey, getKeyBuffer, getKeysRequested, getKeyStream, getObject, getValue, getValueBuffer, getValuesRequested, getValueStream, getVersionTimestamp, getVisitCount, isDeletedVersion, isNull, readBlock, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple(AbstractBTree btree,
             int flags)
Parameters:
btree -
flags -
Method Detail

getSourceIndex

public int getSourceIndex()
Description copied from interface: ITuple
The index of the source from which the tuple was read. This is zero (0) if there is only a single source, e.g., a BTree or IndexSegment. When reading on a FusedView this is the index of the element of the view which reported the tuple.


getTupleSerializer

public ITupleSerializer getTupleSerializer()
Description copied from interface: ITuple
Return the object that can be used to de-serialize the tuple.



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