| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.bddbddb.Relation
net.sf.bddbddb.LSRelation
public class LSRelation
LSRelation
| Nested Class Summary | |
|---|---|
| static class | LSRelation.TupleComparator | 
| Field Summary | |
|---|---|
| static LSRelation.TupleComparator | TUPLE_COMPARATOR | 
| Fields inherited from class net.sf.bddbddb.Relation | 
|---|
| attributes, id, name, negated | 
| Method Summary | |
|---|---|
|  boolean | add(java.math.BigInteger[] t)Add tuple to this relation. | 
| protected  int | compress(java.math.BigInteger[] arr)Compress the given array into a packed value. | 
|  boolean | contains(int k,
         java.math.BigInteger j)Returns true iff this relation contains a tuple where the kth field is value j. | 
|  Relation | copy()Make a copy of this relation. | 
|  double | dsize()Return the number of tuples in this relation, in double format. | 
| protected  void | extract(java.math.BigInteger[] arr,
        int x)Extract packed value x into given array. | 
|  void | free()Free the memory associated with this relation. | 
|  void | initialize()Initialize this relation. | 
|  TupleIterator | iterator()Return an iterator over the tuples of this relation. | 
|  TupleIterator | iterator(java.math.BigInteger[] j)Return an iterator over the tuples where the fields match the values in the given array. | 
|  TupleIterator | iterator(int k)Return an iterator over the values in the kth field of the relation. | 
|  TupleIterator | iterator(int k,
         java.math.BigInteger j)Return an iterator over the tuples where the kth field has value j. | 
|  void | load()Load this relation from disk in its native format. | 
|  void | loadTuples()Load the tuple form of this relation from disk. | 
|  void | loadTuples(java.lang.String filename)Load this relation in tuple form from the given file. | 
|  void | save()Save the current value of this relation to disk in its native format. | 
|  void | saveTuples()Save the current value of this relation to disk in tuple form. | 
|  void | saveTuples(java.lang.String filename)Save the value of this relation in tuple form to the given file. | 
|  java.lang.String | verboseToString()Returns a verbose representation of the relation | 
| Methods inherited from class net.sf.bddbddb.Relation | 
|---|
| elementsToString, fromXMLElement, getAttribNameMap, getAttribute, getAttribute, getAttributes, getConstraints, getNegated, hashCode, makeNegated, numberOfAttributes, setConstraints, size, toString, toXMLElement | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final LSRelation.TupleComparator TUPLE_COMPARATOR
| Method Detail | 
|---|
public boolean add(java.math.BigInteger[] t)
add in class Relationt - tuple to add
protected void extract(java.math.BigInteger[] arr,
                       int x)
arr - array to extract intox - packed valueprotected int compress(java.math.BigInteger[] arr)
arr - array to compress
public void initialize()
Relation
initialize in class Relation
public void load()
          throws java.io.IOException
Relation
load in class Relationjava.io.IOException
public void loadTuples()
                throws java.io.IOException
Relation
loadTuples in class Relationjava.io.IOException
public void loadTuples(java.lang.String filename)
                throws java.io.IOException
Relation
loadTuples in class Relationfilename - the file to load
java.io.IOException
public void save()
          throws java.io.IOException
Relation
save in class Relationjava.io.IOException
public void saveTuples()
                throws java.io.IOException
Relation
saveTuples in class Relationjava.io.IOException
public void saveTuples(java.lang.String filename)
                throws java.io.IOException
Relation
saveTuples in class Relationfilename - name of file to save
java.io.IOExceptionpublic Relation copy()
Relation
copy in class Relationpublic void free()
Relation
free in class Relationpublic double dsize()
Relation
dsize in class Relationpublic TupleIterator iterator()
Relation
iterator in class Relationpublic TupleIterator iterator(int k)
Relation
iterator in class Relationk - zero-based field number
public TupleIterator iterator(int k,
                              java.math.BigInteger j)
Relation
iterator in class Relationk - zero-based field numberj - value
public TupleIterator iterator(java.math.BigInteger[] j)
Relation
iterator in class Relationj - values
public boolean contains(int k,
                        java.math.BigInteger j)
Relation
contains in class Relationk - zero-based field numberj - value
public java.lang.String verboseToString()
Relation
verboseToString in class Relation| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||