public class VolatileTimeComparator extends Object implements Comparator<PhysicalTable>
Constructor and Description |
---|
VolatileTimeComparator(QueryPlanningConstraint requestConstraint,
PartialDataHandler partialDataHandler,
VolatileIntervalsService volatileIntervalsService)
Builds a table comparator that compares tables based on how much data there is in their volatile intervals.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(PhysicalTable left,
PhysicalTable right)
Performs a comparison based on how much data each table has within their volatile intervals.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public VolatileTimeComparator(QueryPlanningConstraint requestConstraint, PartialDataHandler partialDataHandler, VolatileIntervalsService volatileIntervalsService)
requestConstraint
- Contains the request constraints extracted from DataApiRequest and TemplateDruidQuerypartialDataHandler
- A service for computing partial data informationvolatileIntervalsService
- A service to extract the intervals in a query that are volatile with respect
to a given tablepublic int compare(PhysicalTable left, PhysicalTable right)
compare
in interface Comparator<PhysicalTable>
left
- The first tableright
- The second tableCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.