jedd
Interface Relation

All Known Implementing Classes:
RelationContainer

public interface Relation


Method Summary
 Relation add(Attribute srca, PhysicalDomain srcpd, Attribute dsta, PhysicalDomain dstpd, long offset)
          Undocumented
 Relation applyShifter(Jedd.Shifter s)
          Shift the bits in the relation using the provided shifter.
 double fsize()
          Returns the number of tuples in the relation.
 java.util.Iterator iterator()
          Returns an iterator over the components in the relation.
 java.util.Iterator iterator(Attribute[] wanted)
          Returns an iterator over the tuples in the relation.
 int numNodes()
          Returns the number of BDD nodes used to represent the relation.
 long size()
          Returns the number of tuples in the relation.
 java.lang.String toString()
          Returns a string representation listing all the tuples in the relation.
 int width(PhysicalDomain pd)
          Undocumented
 

Method Detail

size

long size()
Returns the number of tuples in the relation.


fsize

double fsize()
Returns the number of tuples in the relation.


numNodes

int numNodes()
Returns the number of BDD nodes used to represent the relation.


iterator

java.util.Iterator iterator(Attribute[] wanted)
Returns an iterator over the tuples in the relation. Each tuple is returned as an Object array of its components. The argument to this method must be an array containing the attributes of this relation. In each tuple array returned by the iterator, the components will appear in the same order as the order of the attributes in the wanted argument to this method. When a relation only has a single attribute, it is easier to iterate over it using the other iterator method. The present iterator is more general in that it works for relations with arbitrary numbers of attributes. Note: the array returned by the next() method of this iterator is reused for subsequent calls to next(). If you need to keep the contents of the array between calls to next(), copy them to a different data structure.


iterator

java.util.Iterator iterator()
Returns an iterator over the components in the relation. This method may only be used on relations having exactly one attribute. The iterator returns the single component of each tuple, one tuple at a time. This iterator is easier to use than the iterator above, but works only on relations with a single attribute.


toString

java.lang.String toString()
Returns a string representation listing all the tuples in the relation.

Overrides:
toString in class java.lang.Object

applyShifter

Relation applyShifter(Jedd.Shifter s)
Shift the bits in the relation using the provided shifter.


add

Relation add(Attribute srca,
             PhysicalDomain srcpd,
             Attribute dsta,
             PhysicalDomain dstpd,
             long offset)
Undocumented


width

int width(PhysicalDomain pd)
Undocumented