com.bigdata.rdf.lexicon
Class KVOTermIdComparator

java.lang.Object
  extended by com.bigdata.rdf.lexicon.KVOTermIdComparator
All Implemented Interfaces:
Comparator<KVO<BigdataValue>>

public class KVOTermIdComparator
extends Object
implements Comparator<KVO<BigdataValue>>

Places KVOs containing BigdataValue references into an ordering determined by the assigned term identifiers}.

Version:
$Id: KVOTermIdComparator.java 4837 2011-07-05 13:31:31Z thompsonbry $
Author:
Bryan Thompson
See Also:
BigdataValue.getIV()

Field Summary
static Comparator<KVO<BigdataValue>> INSTANCE
           
 
Constructor Summary
KVOTermIdComparator()
           
 
Method Summary
 int compare(KVO<BigdataValue> term1, KVO<BigdataValue> term2)
          Note: defers to natural ordering for IV objects.
 
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<KVO<BigdataValue>> INSTANCE
Constructor Detail

KVOTermIdComparator

public KVOTermIdComparator()
Method Detail

compare

public int compare(KVO<BigdataValue> term1,
                   KVO<BigdataValue> term2)
Note: defers to natural ordering for IV objects.

Specified by:
compare in interface Comparator<KVO<BigdataValue>>


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.