|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jrdf.query.relation.mem.GraphRelationImpl
public final class GraphRelationImpl
Implementation of relations containing 3 column heading (subject, predicate, object).
Constructor Summary | |
---|---|
GraphRelationImpl(Graph graph,
SortedAttributeFactory attributeFactory,
AttributeValuePairHelper avpHelper,
TupleComparator tupleComparator,
TupleFactory tupleFactory)
|
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. |
Set<Tuple> |
getTuples(List<AttributeValuePair> nameValues)
Returns the set of tuples based on the constraints given 3 attribute/value pairs. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphRelationImpl(Graph graph, SortedAttributeFactory attributeFactory, AttributeValuePairHelper avpHelper, TupleComparator tupleComparator, TupleFactory tupleFactory)
Method Detail |
---|
public Set<Attribute> getHeading()
Relation
getHeading
in interface Relation
public Set<Tuple> getTuples()
Relation
getTuples
in interface Relation
public Set<Tuple> getTuples(List<AttributeValuePair> nameValues)
GraphRelation
getTuples
in interface GraphRelation
nameValues
- an ordered list of 3 attribute value pairs in the subject, predicate and object position.
public SortedSet<Attribute> getSortedHeading()
getSortedHeading
in interface Relation
public SortedSet<Tuple> getSortedTuples()
getSortedTuples
in interface Relation
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |