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)
DriverQueryHook
setDriver
in interface DriverQueryHook
setDriver
in class NoOpDriverQueryHook
public void preRewrite(AbstractQueryContext ctx) throws LensException
DriverQueryHook
preRewrite
in interface DriverQueryHook
preRewrite
in class NoOpDriverQueryHook
LensException
public void postRewrite(AbstractQueryContext ctx) throws LensException
DriverQueryHook
postRewrite
in interface DriverQueryHook
postRewrite
in class NoOpDriverQueryHook
LensException
public void preEstimate(AbstractQueryContext ctx) throws LensException
DriverQueryHook
preEstimate
in interface DriverQueryHook
preEstimate
in class NoOpDriverQueryHook
LensException
public void postEstimate(AbstractQueryContext ctx) throws LensException
DriverQueryHook
postEstimate
in interface DriverQueryHook
postEstimate
in class NoOpDriverQueryHook
LensException
public void postDriverSelection(AbstractQueryContext ctx) throws LensException
DriverQueryHook
postDriverSelection
in interface DriverQueryHook
postDriverSelection
in class NoOpDriverQueryHook
LensException
public void preLaunch(QueryContext ctx) throws LensException
DriverQueryHook
preLaunch
in interface DriverQueryHook
preLaunch
in class NoOpDriverQueryHook
LensException
public 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.