public class VolatileTimeComparator extends Object implements Comparator<PhysicalTable>
|Constructor and Description|
Builds a table comparator that compares tables based on how much data there is in their volatile intervals.
|Modifier and Type||Method and Description|
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 TemplateDruidQuery
partialDataHandler- A service for computing partial data information
volatileIntervalsService- A service to extract the intervals in a query that are volatile with respect to a given table
public int compare(PhysicalTable left, PhysicalTable right)
left- The first table
right- The second table
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.