public class GranularityComparator extends Object implements Comparator<PhysicalTable>
| Modifier | Constructor and Description |
|---|---|
protected |
GranularityComparator()
A constructor provided in case other classes need to subclass GranularityComparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(PhysicalTable table1,
PhysicalTable table2)
Compare two physical tables identifying which one has fewer time buckets.
|
static GranularityComparator |
getInstance()
Factory method for creating new GranularityComparator instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected GranularityComparator()
public static GranularityComparator getInstance()
public int compare(PhysicalTable table1, PhysicalTable table2)
compare in interface Comparator<PhysicalTable>table1 - The first tabletable2 - The second tableCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.