public class QueryCostBasedQueryHook<T extends QueryCost<T>> extends NoOpDriverQueryHook
Modifier and Type | Field and Description |
---|---|
static String |
ALLOWED_RANGE_SETS |
static String |
DISALLOWED_RANGE_SETS |
Constructor and Description |
---|
QueryCostBasedQueryHook() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.RangeSet<T> |
parseAllowedRangeSet(String rangeStr) |
com.google.common.collect.RangeSet<T> |
parseDisallowedRangeSet(String rangeStr) |
com.google.common.collect.Range<T> |
parseRange(String rangeStr) |
com.google.common.collect.RangeSet<T> |
parseRangeSet(String rangeStr) |
void |
postEstimate(AbstractQueryContext ctx)
Called just after a successful estimate operation is tried on this driver
|
void |
setDriver(LensDriver driver)
This setter method is called by the driver once hook instance is created.
|
getDriver, postDriverSelection, postRewrite, preEstimate, preLaunch, preRewrite
public static final String ALLOWED_RANGE_SETS
public static final String DISALLOWED_RANGE_SETS
public com.google.common.collect.RangeSet<T> parseAllowedRangeSet(String rangeStr)
public com.google.common.collect.RangeSet<T> parseDisallowedRangeSet(String rangeStr)
public void setDriver(LensDriver driver)
DriverQueryHook
setDriver
in interface DriverQueryHook
setDriver
in class NoOpDriverQueryHook
public void postEstimate(AbstractQueryContext ctx) throws LensException
DriverQueryHook
postEstimate
in interface DriverQueryHook
postEstimate
in class NoOpDriverQueryHook
LensException
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.