class AggFinder extends AggVisitor
SqlNode objects and throws Util.FoundOne when it finds
one.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
AggFinder.AggIterable
Iterates over all aggregates.
|
SqlBasicVisitor.ArgHandler<R>, SqlBasicVisitor.ArgHandlerImpl<R>| Constructor and Description |
|---|
AggFinder(SqlOperatorTable opTab,
boolean over,
boolean aggregate,
boolean group,
AggFinder delegate)
Creates an AggFinder.
|
| Modifier and Type | Method and Description |
|---|---|
SqlCall |
findAgg(List<SqlNode> nodes) |
SqlCall |
findAgg(SqlNode node)
Finds an aggregate.
|
(package private) Iterable<SqlCall> |
findAll(Iterable<SqlNode> nodes)
Creates a copy of this finder that has the same parameters as this,
then returns the list of all aggregates found.
|
protected Void |
found(SqlCall call) |
visitAggFinder(SqlOperatorTable opTab, boolean over, boolean aggregate, boolean group, AggFinder delegate)
opTab - Operator tableover - Whether to find windowed function calls agg(x) OVER
windowSpecaggregate - Whether to find non-windowed aggregate callsgroup - Whether to find group functions (e.g. TUMBLE)delegate - Finder to which to delegate when processing the argumentsCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.