abstract class AggVisitor extends SqlBasicVisitor<Void>
AggFinderSqlBasicVisitor.ArgHandler<R>, SqlBasicVisitor.ArgHandlerImpl<R>| Modifier and Type | Field and Description |
|---|---|
protected boolean |
aggregate
Whether to find regular (non-windowed) aggregates.
|
protected AggFinder |
delegate |
protected boolean |
group
Whether to find group functions (e.g.
|
protected SqlOperatorTable |
opTab |
protected boolean |
over
Whether to find windowed aggregates.
|
| Constructor and Description |
|---|
AggVisitor(SqlOperatorTable opTab,
boolean over,
boolean aggregate,
boolean group,
AggFinder delegate)
Creates an AggVisitor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Void |
found(SqlCall call) |
Void |
visit(SqlCall call)
Visits a call to a
SqlOperator. |
protected final SqlOperatorTable opTab
protected final boolean over
protected final AggFinder delegate
protected boolean aggregate
protected boolean group
TUMBLE)
or group auxiliary functions (e.g. TUMBLE_START).AggVisitor(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 argumentspublic Void visit(SqlCall call)
SqlVisitorSqlOperator.visit in interface SqlVisitor<Void>visit in class SqlBasicVisitor<Void>call - CallSqlCall.accept(SqlVisitor)Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.