com.bigdata.rdf.spo
Class SPOComparator<T extends ISPO>

java.lang.Object
  extended by com.bigdata.rdf.spo.SPOComparator<T>
All Implemented Interfaces:
Comparator<T>

public class SPOComparator<T extends ISPO>
extends Object
implements Comparator<T>

Imposes s:p:o ordering based on termIds only (ignores StatementEnum).

Version:
$Id: SPOComparator.java 2265 2009-10-26 12:51:06Z thompsonbry $ FIXME quads : quad aware SPOC comparator. Either this impl conditionally or caller chooses between SPOComparator and an SPOCComparator impl.
Author:
Bryan Thompson

Field Summary
static Comparator<ISPO> INSTANCE
           
 
Method Summary
 int compare(ISPO stmt1, ISPO stmt2)
           
 
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<ISPO> INSTANCE
Method Detail

compare

public int compare(ISPO stmt1,
                   ISPO stmt2)
Specified by:
compare in interface Comparator<T extends ISPO>


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