public final class RewriteQueryUsingAggregateIndexCtx extends Object implements NodeProcessorCtx
RewriteQueryUsingAggregateIndex
used to rewrite operator plan with index table instead of base table.Modifier and Type | Method and Description |
---|---|
String |
getAggregateFunction() |
ExprNodeColumnDesc |
getAggrExprNode() |
String |
getAlias() |
GenericUDAFEvaluator |
getEval() |
Hive |
getHiveDb() |
String |
getIndexKey() |
String |
getIndexName() |
static RewriteQueryUsingAggregateIndexCtx |
getInstance(ParseContext parseContext,
Hive hiveDb,
RewriteCanApplyCtx canApplyCtx) |
ParseContext |
getParseContext() |
void |
invokeRewriteQueryProc() |
void |
setAggrExprNode(ExprNodeColumnDesc aggrExprNode) |
void |
setEval(GenericUDAFEvaluator eval) |
void |
setIndexKey(String indexKey) |
public static RewriteQueryUsingAggregateIndexCtx getInstance(ParseContext parseContext, Hive hiveDb, RewriteCanApplyCtx canApplyCtx)
public ParseContext getParseContext()
public Hive getHiveDb()
public String getIndexName()
public GenericUDAFEvaluator getEval()
public void setEval(GenericUDAFEvaluator eval)
public void setAggrExprNode(ExprNodeColumnDesc aggrExprNode)
public ExprNodeColumnDesc getAggrExprNode()
public String getAlias()
public String getAggregateFunction()
public String getIndexKey()
public void setIndexKey(String indexKey)
public void invokeRewriteQueryProc() throws SemanticException
SemanticException
Copyright © 2017 The Apache Software Foundation. All rights reserved.