com.bigdata.rdf.model
Class BigdataValueIdComparator

java.lang.Object
  extended by com.bigdata.rdf.model.BigdataValueIdComparator
All Implemented Interfaces:
Comparator<BigdataValue>

public class BigdataValueIdComparator
extends Object
implements Comparator<BigdataValue>

Places BigdataValues into an ordering determined by their assigned term identifiers.

Version:
$Id: BigdataValueIdComparator.java 3305 2010-07-27 15:08:28Z thompsonbry $
Author:
Bryan Thompson

Field Summary
static Comparator<BigdataValue> INSTANCE
           
 
Constructor Summary
BigdataValueIdComparator()
           
 
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

BigdataValueIdComparator

public BigdataValueIdComparator()
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-2012 SYSTAP, LLC. All Rights Reserved.