jedd
Interface Relation


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

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


fsize

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


numNodes

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


iterator

public 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.


iterator

public 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

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


applyShifter

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


add

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


width

public int width(PhysicalDomain pd)
Undocumented