Package org.apache.calcite.rex
Class RexWindow
- java.lang.Object
-
- org.apache.calcite.rex.RexWindow
-
public class RexWindow extends java.lang.Object
Specification of the window of rows over which aRexOver
windowed aggregate is evaluated.Treat it as immutable!
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
digest
private boolean
isRows
private RexWindowBound
lowerBound
com.google.common.collect.ImmutableList<RexFieldCollation>
orderKeys
com.google.common.collect.ImmutableList<RexNode>
partitionKeys
private RexWindowBound
upperBound
-
Constructor Summary
Constructors Constructor Description RexWindow(java.util.List<RexNode> partitionKeys, java.util.List<RexFieldCollation> orderKeys, RexWindowBound lowerBound, RexWindowBound upperBound, boolean isRows)
Creates a window.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
computeDigest()
boolean
equals(java.lang.Object that)
RexWindowBound
getLowerBound()
RexWindowBound
getUpperBound()
int
hashCode()
boolean
isRows()
java.lang.String
toString()
-
-
-
Field Detail
-
partitionKeys
public final com.google.common.collect.ImmutableList<RexNode> partitionKeys
-
orderKeys
public final com.google.common.collect.ImmutableList<RexFieldCollation> orderKeys
-
lowerBound
private final RexWindowBound lowerBound
-
upperBound
private final RexWindowBound upperBound
-
isRows
private final boolean isRows
-
digest
private final java.lang.String digest
-
-
Constructor Detail
-
RexWindow
RexWindow(java.util.List<RexNode> partitionKeys, java.util.List<RexFieldCollation> orderKeys, RexWindowBound lowerBound, RexWindowBound upperBound, boolean isRows)
Creates a window.If you need to create a window from outside this package, use
RexBuilder.makeOver(org.apache.calcite.rel.type.RelDataType, org.apache.calcite.sql.SqlAggFunction, java.util.List<org.apache.calcite.rex.RexNode>, java.util.List<org.apache.calcite.rex.RexNode>, com.google.common.collect.ImmutableList<org.apache.calcite.rex.RexFieldCollation>, org.apache.calcite.rex.RexWindowBound, org.apache.calcite.rex.RexWindowBound, boolean, boolean, boolean, boolean)
.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
computeDigest
private java.lang.String computeDigest()
-
getLowerBound
public RexWindowBound getLowerBound()
-
getUpperBound
public RexWindowBound getUpperBound()
-
isRows
public boolean isRows()
-
-