Class LexicalValueComparator
java.lang.Object
org.eclipse.rdf4j.model.util.LexicalValueComparator
- All Implemented Interfaces:
Serializable, Comparator<Value>
A lexical RDF Term Comparator, this class does not compare numerically and is therefore a bit faster than a SPARQL
compliant comparator.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprivate intcompareBNodes(BNode leftBNode, BNode rightBNode) private intcompareDatatypes(IRI leftDatatype, IRI rightDatatype) Compares two literal datatypes and indicates if one should be ordered after the other.private intcompareDatatypes(XSD.Datatype leftDatatype, XSD.Datatype rightDatatype) private intcompareLiterals(Literal leftLit, Literal rightLit) private intcompareTriples(Triple leftTriple, Triple rightTriple) private intcompareURIs(IRI leftURI, IRI rightURI) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
LexicalValueComparator
public LexicalValueComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Value>
-
compareBNodes
-
compareURIs
-
compareLiterals
-
compareDatatypes
Compares two literal datatypes and indicates if one should be ordered after the other. This algorithm ensures that compatible ordered datatypes (numeric and date/time) are grouped together so thatis used in consecutive ordering steps.invalid reference
QueryEvaluationUtil#compareLiterals(Literal, Literal, CompareOp) -
compareDatatypes
-
compareTriples
-