Package org.apache.calcite.rex
Class RexFieldCollation
- java.lang.Object
-
- org.apache.calcite.util.Pair<RexNode,com.google.common.collect.ImmutableSet<SqlKind>>
-
- org.apache.calcite.rex.RexFieldCollation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Pair<RexNode,com.google.common.collect.ImmutableSet<SqlKind>>>
,java.util.Map.Entry<RexNode,com.google.common.collect.ImmutableSet<SqlKind>>
public class RexFieldCollation extends Pair<RexNode,com.google.common.collect.ImmutableSet<SqlKind>>
Expression combined with sort flags (DESCENDING, NULLS LAST).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
RexFieldCollation.Initializer
Helper, used during initialization, that builds a canonizing map from sets ofSqlKind
to immutable sets ofSqlKind
.
-
Constructor Summary
Constructors Constructor Description RexFieldCollation(RexNode left, java.util.Set<SqlKind> right)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelFieldCollation.Direction
getDirection()
RelFieldCollation.NullDirection
getNullDirection()
java.lang.String
toString()
-
-
-
Field Detail
-
KINDS
private static final com.google.common.collect.ImmutableMap<java.util.Set<SqlKind>,com.google.common.collect.ImmutableSet<SqlKind>> KINDS
Canonical map of all combinations ofSqlKind
values that can ever occur. We use a canonical map to save a bit of memory. Because the sets are EnumSets they have predictable order for toString().
-
-
Method Detail
-
toString
public java.lang.String toString()
-
getDirection
public RelFieldCollation.Direction getDirection()
-
getNullDirection
public RelFieldCollation.NullDirection getNullDirection()
-
-