net.sf.farrago.fennel.tuple
Class FennelTupleData

java.lang.Object
  extended by net.sf.farrago.fennel.tuple.FennelTupleData

public class FennelTupleData
extends Object

FennelTupleData is an in-memory collection of independent data values, as explained in the fennel tuple design document. This class is JDK 1.4 compatible.


Field Summary
private  List datums
          the TupleDatums we are responsible for.
 
Constructor Summary
FennelTupleData()
          default constructor.
FennelTupleData(FennelTupleDescriptor tupleDesc)
          creates a FennelTupleData object from a FennelTupleDescriptor.
 
Method Summary
 void add(FennelTupleDatum d)
          adds a new FennelTupleDatum object.
 void compute(FennelTupleDescriptor tupleDesc)
          creates our FennelTupleDatum objects from a FennelTupleDescriptor.
 boolean containsNull()
          indicates whether this tuple contains any null FennelTupleDatum elements.
 FennelTupleDatum getDatum(int n)
          obtains a FennelTupleDatum object given the index of an entry.
 int getDatumCount()
          returns the number of datums we have.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datums

private final List datums
the TupleDatums we are responsible for.

Constructor Detail

FennelTupleData

public FennelTupleData()
default constructor.


FennelTupleData

public FennelTupleData(FennelTupleDescriptor tupleDesc)
creates a FennelTupleData object from a FennelTupleDescriptor.

Method Detail

getDatum

public FennelTupleDatum getDatum(int n)
obtains a FennelTupleDatum object given the index of an entry.


getDatumCount

public int getDatumCount()
returns the number of datums we have.


add

public void add(FennelTupleDatum d)
adds a new FennelTupleDatum object.


compute

public void compute(FennelTupleDescriptor tupleDesc)
creates our FennelTupleDatum objects from a FennelTupleDescriptor.


containsNull

public boolean containsNull()
indicates whether this tuple contains any null FennelTupleDatum elements.