public class ChainedDriverQueryHook extends NoOpDriverQueryHook
| Constructor and Description |
|---|
ChainedDriverQueryHook(Iterable<DriverQueryHook> hooks) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static ChainedDriverQueryHook |
from(org.apache.hadoop.conf.Configuration conf,
String key) |
Iterable<DriverQueryHook> |
getHooks() |
int |
hashCode() |
void |
postDriverSelection(AbstractQueryContext ctx)
Called just after driver has been selected to execute a query.
|
void |
postEstimate(AbstractQueryContext ctx)
Called just after a successful estimate operation is tried on this driver
|
void |
postRewrite(AbstractQueryContext ctx)
Called just after a successful rewrite operation is tried on this driver
|
void |
preEstimate(AbstractQueryContext ctx)
Called just before estimate operation is tried on this driver
Note : Estimate operation will be skipped if rewrite operation fails for this driver
|
void |
preLaunch(QueryContext ctx)
Called just before launching the query on the selected driver.
|
void |
preRewrite(AbstractQueryContext ctx)
Called just before rewrite operation is tried on this driver
|
void |
setDriver(LensDriver driver)
This setter method is called by the driver once hook instance is created.
|
String |
toString() |
getDriver@ConstructorProperties(value="hooks") @Generated(value="lombok") public ChainedDriverQueryHook(Iterable<DriverQueryHook> hooks)
public void setDriver(LensDriver driver)
DriverQueryHooksetDriver in interface DriverQueryHooksetDriver in class NoOpDriverQueryHookpublic void preRewrite(AbstractQueryContext ctx) throws LensException
DriverQueryHookpreRewrite in interface DriverQueryHookpreRewrite in class NoOpDriverQueryHookLensExceptionpublic void postRewrite(AbstractQueryContext ctx) throws LensException
DriverQueryHookpostRewrite in interface DriverQueryHookpostRewrite in class NoOpDriverQueryHookLensExceptionpublic void preEstimate(AbstractQueryContext ctx) throws LensException
DriverQueryHookpreEstimate in interface DriverQueryHookpreEstimate in class NoOpDriverQueryHookLensExceptionpublic void postEstimate(AbstractQueryContext ctx) throws LensException
DriverQueryHookpostEstimate in interface DriverQueryHookpostEstimate in class NoOpDriverQueryHookLensExceptionpublic void postDriverSelection(AbstractQueryContext ctx) throws LensException
DriverQueryHookpostDriverSelection in interface DriverQueryHookpostDriverSelection in class NoOpDriverQueryHookLensExceptionpublic void preLaunch(QueryContext ctx) throws LensException
DriverQueryHookpreLaunch in interface DriverQueryHookpreLaunch in class NoOpDriverQueryHookLensExceptionpublic static ChainedDriverQueryHook from(org.apache.hadoop.conf.Configuration conf, String key) throws LensException
LensException@Generated(value="lombok") public Iterable<DriverQueryHook> getHooks()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
@Generated(value="lombok") public String toString()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.