| Package | Description |
|---|---|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlWindow |
SqlWindow.create(SqlIdentifier declName,
SqlIdentifier refName,
SqlNodeList partitionList,
SqlNodeList orderList,
SqlLiteral isRows,
SqlNode lowerBound,
SqlNode upperBound,
SqlLiteral allowPartial,
SqlParserPos pos) |
SqlWindow |
SqlWindow.createCurrentRowWindow(String columnName)
Creates a window
(RANGE columnName CURRENT ROW). |
SqlWindow |
SqlWindow.createUnboundedPrecedingWindow(String columnName)
Creates a window
(RANGE columnName UNBOUNDED
PRECEDING). |
SqlWindow |
SqlWindow.overlay(SqlWindow that,
SqlValidator validator)
Creates a new window by combining this one with another.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
SqlWindow.checkSpecialLiterals(SqlWindow window,
SqlValidator validator) |
SqlWindow |
SqlWindow.overlay(SqlWindow that,
SqlValidator validator)
Creates a new window by combining this one with another.
|
| Modifier and Type | Method and Description |
|---|---|
protected SqlWindow |
SqlValidatorImpl.getWindowByName(SqlIdentifier id,
SqlValidatorScope scope) |
private SqlWindow |
SqlValidatorImpl.getWindowInOver(SqlNode over) |
SqlWindow |
SelectScope.lookupWindow(String name) |
SqlWindow |
SqlValidatorScope.lookupWindow(String name)
Finds a window with a given name.
|
SqlWindow |
EmptyScope.lookupWindow(String name) |
SqlWindow |
JoinScope.lookupWindow(String name) |
SqlWindow |
DelegatingScope.lookupWindow(String name) |
SqlWindow |
SqlValidator.resolveWindow(SqlNode windowOrRef,
SqlValidatorScope scope,
boolean populateBounds)
Converts a window specification or window name into a fully-resolved
window specification.
|
SqlWindow |
SqlValidatorImpl.resolveWindow(SqlNode windowOrRef,
SqlValidatorScope scope,
boolean populateBounds) |
| Modifier and Type | Method and Description |
|---|---|
private void |
SqlValidatorImpl.checkRollUpInWindow(SqlWindow window,
SqlValidatorScope scope) |
| Modifier and Type | Field and Description |
|---|---|
(package private) SqlWindow |
SqlToRelConverter.Blackboard.window
When converting window aggregate, we need to know if the window is
guaranteed to be non-empty.
|
private SqlWindow |
SqlToRelConverter.HistogramShuttle.window |
| Constructor and Description |
|---|
HistogramShuttle(List<RexNode> partitionKeys,
com.google.common.collect.ImmutableList<RexFieldCollation> orderKeys,
RexWindowBound lowerBound,
RexWindowBound upperBound,
SqlWindow window,
boolean distinct) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.