|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrdf.graph.global.GroundedTripleComparatorImpl
public class GroundedTripleComparatorImpl
A different implementation of TripleComparator. Where the number of blank nodes in a triple makes it less than triples without blank nodes. Triples with the same number of blank nodes are then compared by node type.
| Constructor Summary | |
|---|---|
GroundedTripleComparatorImpl(TripleComparator newTripleComparator)
|
|
| Method Summary | |
|---|---|
int |
compare(Triple o1,
Triple o2)
|
NodeComparator |
getNodeComparator()
|
void |
visitBlankNode(BlankNode blankNode)
Visit blank node. |
void |
visitLiteral(Literal literal)
Visit Literal. |
void |
visitNode(Node node)
Visit node. |
void |
visitResource(Resource resource)
Visit Resource. |
void |
visitURIReference(URIReference uriReference)
Visit URI Reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public GroundedTripleComparatorImpl(TripleComparator newTripleComparator)
| Method Detail |
|---|
public int compare(Triple o1,
Triple o2)
compare in interface Comparator<Triple>public void visitBlankNode(BlankNode blankNode)
TypedNodeVisitor
visitBlankNode in interface TypedNodeVisitorblankNode - the blank node to visit.public void visitURIReference(URIReference uriReference)
TypedNodeVisitor
visitURIReference in interface TypedNodeVisitoruriReference - the URI Reference to visit.public void visitLiteral(Literal literal)
TypedNodeVisitor
visitLiteral in interface TypedNodeVisitorliteral - the Literal to visit.public void visitNode(Node node)
TypedNodeVisitor
visitNode in interface TypedNodeVisitornode - the node to visit.public void visitResource(Resource resource)
TypedNodeVisitor
visitResource in interface TypedNodeVisitorresource - the node to visit.public NodeComparator getNodeComparator()
getNodeComparator in interface TripleComparator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||