public final class RewriteCanApplyCtx extends Object implements NodeProcessorCtx
RewriteCanApplyProcFactory
to determine if any index can be used and if the input query
meets all the criteria for rewrite optimization.public static RewriteCanApplyCtx getInstance(ParseContext parseContext)
public boolean isQueryHasGroupBy()
public void setQueryHasGroupBy(boolean queryHasGroupBy)
public boolean isAggFuncIsNotCount()
public void setAggFuncIsNotCount(boolean aggFuncIsNotCount)
public void setAggFunction(String aggFunction)
public String getAggFunction()
public void setSelClauseColsFetchException(boolean selClauseColsFetchException)
public boolean isSelClauseColsFetchException()
public String getAlias()
public void setAlias(String alias)
public String getBaseTableName()
public void setBaseTableName(String baseTableName)
public String getIndexTableName()
public void setIndexTableName(String indexTableName)
public ParseContext getParseContext()
public String getIndexKey()
public void setIndexKey(String indexKey)
public TableScanOperator getTableScanOperator()
public void setTableScanOperator(TableScanOperator tableScanOperator)
public List<SelectOperator> getSelectOperators()
public void setSelectOperators(List<SelectOperator> selectOperators)
public List<GroupByOperator> getGroupByOperators()
public void setGroupByOperators(List<GroupByOperator> groupByOperators)
public void setAggParameterException(boolean aggParameterException)
public boolean isAggParameterException()
Copyright © 2017 The Apache Software Foundation. All rights reserved.