org.eigenbase.sarg
Class SargSetExpr.IntervalComparator

java.lang.Object
  extended by org.eigenbase.sarg.SargSetExpr.IntervalComparator
All Implemented Interfaces:
Comparator<SargInterval>
Enclosing class:
SargSetExpr

private static class SargSetExpr.IntervalComparator
extends Object
implements Comparator<SargInterval>

Comparator used in evaluateUnionOp. Intervals collate based on {lowerBound, upperBound}.


Constructor Summary
SargSetExpr.IntervalComparator()
           
 
Method Summary
 int compare(SargInterval i1, SargInterval i2)
           
 boolean equals(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SargSetExpr.IntervalComparator

SargSetExpr.IntervalComparator()
Method Detail

compare

public int compare(SargInterval i1,
                   SargInterval i2)
Specified by:
compare in interface Comparator<SargInterval>

equals

public boolean equals(Object obj)
Specified by:
equals in interface Comparator<SargInterval>
Overrides:
equals in class Object