Package org.apache.calcite.sql.validate
Class AggregatingSelectScope.Resolved
- java.lang.Object
-
- org.apache.calcite.sql.validate.AggregatingSelectScope.Resolved
-
- Enclosing class:
- AggregatingSelectScope
public class AggregatingSelectScope.Resolved extends java.lang.Object
Information about an aggregating scope that can only be determined after validation has occurred. Therefore it cannot be populated when the scope is created.
-
-
Field Summary
Fields Modifier and Type Field Description com.google.common.collect.ImmutableList<SqlNode>
extraExprList
com.google.common.collect.ImmutableList<SqlNode>
groupExprList
java.util.Map<java.lang.Integer,java.lang.Integer>
groupExprProjection
ImmutableBitSet
groupSet
com.google.common.collect.ImmutableList<ImmutableBitSet>
groupSets
-
Constructor Summary
Constructors Constructor Description Resolved(java.util.List<SqlNode> extraExprList, java.util.List<SqlNode> groupExprList, java.lang.Iterable<ImmutableBitSet> groupSets, java.util.Map<java.lang.Integer,java.lang.Integer> groupExprProjection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isGroupingExpr(SqlNode operand)
Returns whether a given expression is equal to one of the grouping expressions.boolean
isNullable(int i)
Returns whether a field should be nullable due to grouping sets.int
lookupGroupingExpr(SqlNode operand)
-
-
-
Field Detail
-
extraExprList
public final com.google.common.collect.ImmutableList<SqlNode> extraExprList
-
groupExprList
public final com.google.common.collect.ImmutableList<SqlNode> groupExprList
-
groupSet
public final ImmutableBitSet groupSet
-
groupSets
public final com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets
-
groupExprProjection
public final java.util.Map<java.lang.Integer,java.lang.Integer> groupExprProjection
-
-
Constructor Detail
-
Resolved
Resolved(java.util.List<SqlNode> extraExprList, java.util.List<SqlNode> groupExprList, java.lang.Iterable<ImmutableBitSet> groupSets, java.util.Map<java.lang.Integer,java.lang.Integer> groupExprProjection)
-
-
Method Detail
-
isNullable
public boolean isNullable(int i)
Returns whether a field should be nullable due to grouping sets.
-
isGroupingExpr
public boolean isGroupingExpr(SqlNode operand)
Returns whether a given expression is equal to one of the grouping expressions. Determines whether it is valid as an operand to GROUPING.
-
lookupGroupingExpr
public int lookupGroupingExpr(SqlNode operand)
-
-