com.bigdata.rdf.model
Class TermIdComparator

java.lang.Object
  extended by 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()

Field Summary
static Comparator<BigdataValue> INSTANCE
           
 
Constructor Summary
TermIdComparator()
           
 
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
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

INSTANCE

public static final transient Comparator<BigdataValue> INSTANCE
Constructor Detail

TermIdComparator

public TermIdComparator()
Method Detail

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.