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, preRewritepublic 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)
DriverQueryHooksetDriver in interface DriverQueryHooksetDriver in class NoOpDriverQueryHookpublic void postEstimate(AbstractQueryContext ctx) throws LensException
DriverQueryHookpostEstimate in interface DriverQueryHookpostEstimate in class NoOpDriverQueryHookLensExceptionCopyright © 2014–2018 Apache Software Foundation. All rights reserved.