jedd.internal
Class RelationContainer

java.lang.Object
  extended by jedd.internal.RelationContainer
All Implemented Interfaces:
Relation

public class RelationContainer
extends java.lang.Object
implements Relation


Field Summary
static long count
           
static long delRefTime
           
 
Constructor Summary
RelationContainer(Attribute[] attributes, PhysicalDomain[] phys, java.lang.String desc)
           
RelationContainer(Attribute[] attributes, PhysicalDomain[] phys, java.lang.String desc, RelationContainer r)
           
RelationContainer(Attribute[] attributes, PhysicalDomain[] phys, java.lang.String desc, RelationInstance r)
           
 
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.
 RelationInstance bdd()
           
 RelationContainer eq(RelationContainer r)
           
 RelationContainer eq(RelationInstance rhs)
           
 RelationContainer eqIntersect(RelationContainer r)
           
 RelationContainer eqIntersect(RelationInstance rhs)
           
 RelationContainer eqMinus(RelationContainer r)
           
 RelationContainer eqMinus(RelationInstance rhs)
           
 RelationContainer eqUnion(RelationContainer r)
           
 RelationContainer eqUnion(RelationInstance rhs)
           
 void finalize()
           
 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.
 void kill()
           
 int numNodes()
          Returns the number of BDD nodes used to represent the relation.
 java.lang.String oldtoString()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

count

public static long count

delRefTime

public static long delRefTime
Constructor Detail

RelationContainer

public RelationContainer(Attribute[] attributes,
                         PhysicalDomain[] phys,
                         java.lang.String desc)

RelationContainer

public RelationContainer(Attribute[] attributes,
                         PhysicalDomain[] phys,
                         java.lang.String desc,
                         RelationContainer r)

RelationContainer

public RelationContainer(Attribute[] attributes,
                         PhysicalDomain[] phys,
                         java.lang.String desc,
                         RelationInstance r)
Method Detail

bdd

public RelationInstance bdd()

eq

public RelationContainer eq(RelationInstance rhs)

eq

public RelationContainer eq(RelationContainer r)

kill

public void kill()

eqUnion

public RelationContainer eqUnion(RelationInstance rhs)

eqUnion

public RelationContainer eqUnion(RelationContainer r)

eqIntersect

public RelationContainer eqIntersect(RelationInstance rhs)

eqIntersect

public RelationContainer eqIntersect(RelationContainer r)

eqMinus

public RelationContainer eqMinus(RelationInstance rhs)

eqMinus

public RelationContainer eqMinus(RelationContainer r)

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

fsize

public double fsize()
Description copied from interface: Relation
Returns the number of tuples in the relation.

Specified by:
fsize in interface Relation

size

public long size()
Description copied from interface: Relation
Returns the number of tuples in the relation.

Specified by:
size in interface Relation

numNodes

public int numNodes()
Description copied from interface: Relation
Returns the number of BDD nodes used to represent the relation.

Specified by:
numNodes in interface Relation

iterator

public java.util.Iterator iterator(Attribute[] wanted)
Description copied from interface: Relation
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.

Specified by:
iterator in interface Relation

iterator

public java.util.Iterator iterator()
Description copied from interface: Relation
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.

Specified by:
iterator in interface Relation

oldtoString

public java.lang.String oldtoString()

toString

public java.lang.String toString()
Description copied from interface: Relation
Returns a string representation listing all the tuples in the relation.

Specified by:
toString in interface Relation
Overrides:
toString in class java.lang.Object

applyShifter

public Relation applyShifter(Jedd.Shifter s)
Description copied from interface: Relation
Shift the bits in the relation using the provided shifter.

Specified by:
applyShifter in interface Relation

add

public Relation add(Attribute srca,
                    PhysicalDomain srcpd,
                    Attribute dsta,
                    PhysicalDomain dstpd,
                    long offset)
Description copied from interface: Relation
Undocumented

Specified by:
add in interface Relation

width

public int width(PhysicalDomain pd)
Description copied from interface: Relation
Undocumented

Specified by:
width in interface Relation