org.jrdf.query.relation.mem
Class RelationImpl

java.lang.Object
  extended by org.jrdf.query.relation.mem.RelationImpl
All Implemented Interfaces:
Relation

public final class RelationImpl
extends Object
implements Relation

Implementation of relations containing a set of tuples and a set of attributes. The attribute constitute a heading the maps to the tuple values.

Version:
$Id: RelationImpl.java 1045 2007-01-05 04:56:09Z newmana $
Author:
Andrew Newman

Method Summary
 boolean equals(Object obj)
           
 Set<Attribute> getHeading()
          Returns the set of attributes or heading of the relation.
 SortedSet<Attribute> getSortedHeading()
           
 SortedSet<Tuple> getSortedTuples()
           
 Set<Tuple> getTuples()
          Returns the set of tuples.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getHeading

public Set<Attribute> getHeading()
Description copied from interface: Relation
Returns the set of attributes or heading of the relation.

Specified by:
getHeading in interface Relation
Returns:
the set of attributes or heading of the relation.

getTuples

public Set<Tuple> getTuples()
Description copied from interface: Relation
Returns the set of tuples.

Specified by:
getTuples in interface Relation
Returns:
a set of tuples.

getSortedHeading

public SortedSet<Attribute> getSortedHeading()
Specified by:
getSortedHeading in interface Relation

getSortedTuples

public SortedSet<Tuple> getSortedTuples()
Specified by:
getSortedTuples in interface Relation

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object