public class RewriteGBUsingIndex extends Transform
select count(key)
from table
group by key;
to
select sum(_count_of_key)
from idx_table
group by key;
The rewrite supports following queries:
AggregateIndexHandler
,
IndexUtils
,
RewriteCanApplyCtx
,
RewriteCanApplyProcFactory
,
RewriteParseContextGenerator
,
RewriteQueryUsingAggregateIndexCtx
,
For test cases, @see ql_rewrite_gbtoidx.q
Constructor and Description |
---|
RewriteGBUsingIndex() |
Modifier and Type | Method and Description |
---|---|
ParseContext |
transform(ParseContext pctx)
All transformation steps implement this interface.
|
beginPerfLogging, endPerfLogging, endPerfLogging
public ParseContext transform(ParseContext pctx) throws SemanticException
Transform
transform
in class Transform
pctx
- input parse contextSemanticException
Copyright © 2017 The Apache Software Foundation. All rights reserved.