com.lucidera.lcs
Class LcsIndexOptimizer.RowCountComparator

java.lang.Object
  extended by com.lucidera.lcs.LcsIndexOptimizer.RowCountComparator
All Implemented Interfaces:
Comparator<RelNode>
Enclosing class:
LcsIndexOptimizer

private static class LcsIndexOptimizer.RowCountComparator
extends Object
implements Comparator<RelNode>

RowCountComparator is used to sort RelNodes based on their rowcounts, provided the counts are known. Unknown rowcounts are always sorted last.


Constructor Summary
private LcsIndexOptimizer.RowCountComparator()
           
 
Method Summary
 int compare(RelNode r1, RelNode r2)
           
 
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
 

Constructor Detail

LcsIndexOptimizer.RowCountComparator

private LcsIndexOptimizer.RowCountComparator()
Method Detail

compare

public int compare(RelNode r1,
                   RelNode r2)
Specified by:
compare in interface Comparator<RelNode>