com.bigdata.rdf.model
Class TermIdComparator
java.lang.Object
com.bigdata.rdf.model.TermIdComparator
- All Implemented Interfaces:
- Comparator<BigdataValue>
public class TermIdComparator
- extends Object
- implements Comparator<BigdataValue>
Places BigdataValues into an ordering determined by their assigned
term identifiers.
- Version:
- $Id: TermIdComparator.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
- See Also:
BigdataValue.getTermId()
|
Method Summary |
int |
compare(BigdataValue term1,
BigdataValue term2)
Note: comparison avoids possible overflow of long by
not computing the difference directly. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final transient Comparator<BigdataValue> INSTANCE
TermIdComparator
public TermIdComparator()
compare
public int compare(BigdataValue term1,
BigdataValue term2)
- Note: comparison avoids possible overflow of
long by
not computing the difference directly.
- Specified by:
compare in interface Comparator<BigdataValue>
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.