Modifier and Type | Method and Description |
---|---|
QueryCost |
FactPartitionBasedQueryCostCalculator.calculateCost(AbstractQueryContext queryContext,
LensDriver driver) |
Map<String,Set<?>> |
FactPartitionBasedQueryCostCalculator.getAllPartitions(AbstractQueryContext queryContext,
LensDriver driver) |
Modifier and Type | Method and Description |
---|---|
QueryCost |
ESDriver.estimate(AbstractQueryContext qctx) |
DriverQueryPlan |
ESDriver.explain(AbstractQueryContext context) |
Modifier and Type | Method and Description |
---|---|
Priority |
HiveDriver.decidePriority(AbstractQueryContext ctx) |
QueryCost |
HiveDriver.estimate(AbstractQueryContext qctx) |
HiveQueryPlan |
HiveDriver.explain(AbstractQueryContext explainCtx) |
Modifier and Type | Method and Description |
---|---|
QueryCost |
JDBCDriver.estimate(AbstractQueryContext qctx) |
DriverQueryPlan |
JDBCDriver.explain(AbstractQueryContext explainCtx)
Explain the given query.
|
void |
JDBCDriver.validate(AbstractQueryContext pContext)
Validate query using prepare
|
Modifier and Type | Method and Description |
---|---|
Priority |
LensDriver.decidePriority(AbstractQueryContext queryContext)
decide priority based on query's cost.
|
Priority |
AbstractLensDriver.decidePriority(AbstractQueryContext queryContext) |
QueryCost |
LensDriver.estimate(AbstractQueryContext qctx)
Estimate the cost of execution for given query.
|
DriverQueryPlan |
LensDriver.explain(AbstractQueryContext explainCtx)
Explain the given query.
|
LensDriver |
WeightedQueryCostDriverSelector.select(AbstractQueryContext ctx,
org.apache.hadoop.conf.Configuration conf)
Returns the driver that has the minimum query cost according to predefined driver allocation ratios.
|
LensDriver |
MinQueryCostSelector.select(AbstractQueryContext ctx,
org.apache.hadoop.conf.Configuration conf)
Returns the driver that has the minimum query cost.
|
LensDriver |
DriverSelector.select(AbstractQueryContext ctx,
org.apache.hadoop.conf.Configuration conf)
Select.
|
Modifier and Type | Method and Description |
---|---|
void |
NoOpDriverQueryHook.postDriverSelection(AbstractQueryContext ctx) |
void |
DriverQueryHook.postDriverSelection(AbstractQueryContext ctx)
Called just after driver has been selected to execute a query.
|
void |
ChainedDriverQueryHook.postDriverSelection(AbstractQueryContext ctx) |
void |
QueryCostBasedQueryHook.postEstimate(AbstractQueryContext ctx) |
void |
NoOpDriverQueryHook.postEstimate(AbstractQueryContext ctx) |
void |
DriverQueryHook.postEstimate(AbstractQueryContext ctx)
Called just after a successful estimate operation is tried on this driver
|
void |
ChainedDriverQueryHook.postEstimate(AbstractQueryContext ctx) |
void |
NoOpDriverQueryHook.postRewrite(AbstractQueryContext ctx) |
void |
DriverQueryHook.postRewrite(AbstractQueryContext ctx)
Called just after a successful rewrite operation is tried on this driver
|
void |
ChainedDriverQueryHook.postRewrite(AbstractQueryContext ctx) |
void |
NoOpDriverQueryHook.preEstimate(AbstractQueryContext ctx) |
void |
DriverQueryHook.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 |
ChainedDriverQueryHook.preEstimate(AbstractQueryContext ctx) |
void |
UserBasedQueryHook.preRewrite(AbstractQueryContext ctx) |
void |
NoOpDriverQueryHook.preRewrite(AbstractQueryContext ctx) |
void |
DriverQueryHook.preRewrite(AbstractQueryContext ctx)
Called just before rewrite operation is tried on this driver
|
void |
ChainedDriverQueryHook.preRewrite(AbstractQueryContext ctx) |
Modifier and Type | Class and Description |
---|---|
class |
ExplainQueryContext
The class ExplainQueryContext
|
class |
PreparedQueryContext
The Class PreparedQueryContext.
|
class |
QueryContext
The Class QueryContext.
|
Modifier and Type | Method and Description |
---|---|
void |
DriverSelectorQueryContext.setDriverQueryPlans(Map<LensDriver,String> driverQueries,
AbstractQueryContext qctx)
Sets driver queries, generates plans for each driver by calling explain with respective queries,
Sets driverQueryPlans
|
Constructor and Description |
---|
DriverEstimateRunnable(AbstractQueryContext queryContext,
LensDriver driver) |
Modifier and Type | Method and Description |
---|---|
QueryCost |
QueryCostCalculator.calculateCost(AbstractQueryContext queryContext,
LensDriver driver) |
Constructor and Description |
---|
RewriteEstimateRunnable(LensDriver driver,
RewriteUtil.DriverRewriterRunnable rewriterRunnable,
AbstractQueryContext.DriverEstimateRunnable estimateRunnable,
AbstractQueryContext ctx,
CountDownLatch estimateCompletionLatch) |
Modifier and Type | Method and Description |
---|---|
void |
UserQueryToCubeQueryRewriter.rewrite(AbstractQueryContext ctx) |
static Map<LensDriver,RewriteUtil.DriverRewriterRunnable> |
RewriteUtil.rewriteQuery(AbstractQueryContext ctx)
Rewrite query.
|
Constructor and Description |
---|
DriverRewriterRunnable(LensDriver driver,
AbstractQueryContext ctx,
List<org.apache.lens.server.rewrite.RewriteUtil.CubeQueryInfo> cubeQueries,
String replacedQuery) |
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.