|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<Tuple>
omnics.TupleSet
public class TupleSet
| Constructor Summary | |
|---|---|
TupleSet()
Creates a new instance of TupleSet |
|
TupleSet(TupleSet tuples)
Creates a new instance of TupleSet |
|
| Method Summary | |
|---|---|
boolean |
contains(java.lang.Object... values)
Tests if in this relation there is a tuple with the specified values. |
boolean |
contains(Var[] vars,
java.lang.Object[] values)
Tests if in this relation there is a tuple with the specified values for the specified variables. |
boolean |
contains(Var var,
java.lang.Object value)
Tests if in this relation there is a tuple for which a certain variable has the specified value. |
TupleSet |
difference(TupleSet otherSet)
Performs the difference of two relations. |
Tuple |
first()
Returns the first tuple from the set. |
TupleSet |
intersection(TupleSet otherSet)
Performs the intersection of two relations. |
TupleSet |
join(TupleSet otherSet)
Performs the join of two relations. |
TupleSet |
projection(VarSet vars)
Return the projection on the specified set of variables |
TupleSet |
union(TupleSet otherSet)
Performs the union of two relations. |
VarSet |
variables()
Returns the variables of this relation as a @link{VarSet} |
| Methods inherited from class java.util.HashSet |
|---|
add, clear, clone, contains, isEmpty, iterator, remove, size |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public TupleSet()
public TupleSet(TupleSet tuples)
| Method Detail |
|---|
public VarSet variables()
public boolean contains(Var var,
java.lang.Object value)
public boolean contains(Var[] vars,
java.lang.Object[] values)
public boolean contains(java.lang.Object... values)
public TupleSet projection(VarSet vars)
public TupleSet union(TupleSet otherSet)
TupleSet consisting of the union of this
set of tuples with the specified set of tuples.
otherSet - the set of tuples to be added
public TupleSet intersection(TupleSet otherSet)
public TupleSet difference(TupleSet otherSet)
public TupleSet join(TupleSet otherSet)
public Tuple first()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||