Uses of Interface
org.apache.calcite.rel.RelCollation
-
Packages that use RelCollation Package Description org.apache.calcite.adapter.cassandra Cassandra query provider.org.apache.calcite.adapter.clone Provides utility classes.org.apache.calcite.adapter.elasticsearch Query provider based on an Elasticsearch2 DB.org.apache.calcite.adapter.enumerable Query optimizer rules for Java calling convention.org.apache.calcite.adapter.geode.rel Query provider based on Apache Geode (Gemfire) In Memory Data Gridorg.apache.calcite.adapter.jdbc Query provider based on a JDBC data source.org.apache.calcite.adapter.mongodb Query provider based on a MongoDB database.org.apache.calcite.interpreter Provides an implementation of relational expressions using an interpreter.org.apache.calcite.jdbc JDBC driver for Calcite.org.apache.calcite.plan Defines interfaces for constructing rule-based optimizers of relational expressions.org.apache.calcite.prepare Preparation of queries (parsing, planning and implementation).org.apache.calcite.rel Defines relational expressions.org.apache.calcite.rel.core Defines core relational expressions.org.apache.calcite.rel.externalize Facilities to externalizeRelNode
s to and from XML and JSON format.org.apache.calcite.rel.logical Defines logical relational expressions.org.apache.calcite.rel.metadata Defines metadata interfaces and utilities for relational expressions.org.apache.calcite.rel.mutable Defines mutable relational expressions.org.apache.calcite.rex Provides a language for representing row-expressions.org.apache.calcite.schema Schema SPI.org.apache.calcite.sql2rel Translates a SQL parse tree to relational expression.org.apache.calcite.tools Provides utility classes. -
-
Uses of RelCollation in org.apache.calcite.adapter.cassandra
Fields in org.apache.calcite.adapter.cassandra declared as RelCollation Modifier and Type Field Description private RelCollation
CassandraFilter. implicitCollation
Methods in org.apache.calcite.adapter.cassandra that return RelCollation Modifier and Type Method Description RelCollation
CassandraFilter. getImplicitCollation()
Get the resulting collation by the clustering keys after filtering.RelCollation
CassandraFilter.Translator. getImplicitCollation()
Infer the implicit correlation from the unrestricted clustering keys.Methods in org.apache.calcite.adapter.cassandra with parameters of type RelCollation Modifier and Type Method Description private boolean
CassandraRules.CassandraSortRule. collationsCompatible(RelCollation sortCollation, RelCollation implicitCollation)
Check if it is possible to exploit native CQL sorting for a given collation.Sort
CassandraSort. copy(RelTraitSet traitSet, RelNode input, RelCollation newCollation, RexNode offset, RexNode fetch)
Constructors in org.apache.calcite.adapter.cassandra with parameters of type RelCollation Constructor Description CassandraSort(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, RelCollation collation)
-
Uses of RelCollation in org.apache.calcite.adapter.clone
Fields in org.apache.calcite.adapter.clone with type parameters of type RelCollation Modifier and Type Field Description private com.google.common.collect.ImmutableList<RelCollation>
ArrayTable.Content. collations
Method parameters in org.apache.calcite.adapter.clone with type arguments of type RelCollation Modifier and Type Method Description static <T> Table
CloneSchema. createCloneTable(JavaTypeFactory typeFactory, RelProtoDataType protoRowType, java.util.List<RelCollation> collations, java.util.List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList, Enumerable<T> source)
Constructor parameters in org.apache.calcite.adapter.clone with type arguments of type RelCollation Constructor Description Content(java.util.List<? extends ArrayTable.Column> columns, int size, java.lang.Iterable<? extends RelCollation> collations)
-
Uses of RelCollation in org.apache.calcite.adapter.elasticsearch
Methods in org.apache.calcite.adapter.elasticsearch with parameters of type RelCollation Modifier and Type Method Description Sort
ElasticsearchSort. copy(RelTraitSet traitSet, RelNode relNode, RelCollation relCollation, RexNode offset, RexNode fetch)
Constructors in org.apache.calcite.adapter.elasticsearch with parameters of type RelCollation Constructor Description ElasticsearchSort(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, RelCollation collation, RexNode offset, RexNode fetch)
-
Uses of RelCollation in org.apache.calcite.adapter.enumerable
Methods in org.apache.calcite.adapter.enumerable with parameters of type RelCollation Modifier and Type Method Description EnumerableSort
EnumerableSort. copy(RelTraitSet traitSet, RelNode newInput, RelCollation newCollation, RexNode offset, RexNode fetch)
static EnumerableSort
EnumerableSort. create(RelNode child, RelCollation collation, RexNode offset, RexNode fetch)
Creates an EnumerableSort.Expression
PhysType. generateComparator(RelCollation collation)
Returns a comparator.Expression
PhysTypeImpl. generateComparator(RelCollation collation)
Constructors in org.apache.calcite.adapter.enumerable with parameters of type RelCollation Constructor Description EnumerableSort(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
Creates an EnumerableSort.Constructor parameters in org.apache.calcite.adapter.enumerable with type arguments of type RelCollation Constructor Description EnumerableCalc(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RexProgram program, java.util.List<RelCollation> collationList)
Deprecated. -
Uses of RelCollation in org.apache.calcite.adapter.geode.rel
Methods in org.apache.calcite.adapter.geode.rel with parameters of type RelCollation Modifier and Type Method Description Sort
GeodeSort. copy(RelTraitSet traitSet, RelNode input, RelCollation newCollation, RexNode offset, RexNode fetch)
Constructors in org.apache.calcite.adapter.geode.rel with parameters of type RelCollation Constructor Description GeodeSort(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelCollation collation, RexNode fetch)
Creates a GeodeSort. -
Uses of RelCollation in org.apache.calcite.adapter.jdbc
Methods in org.apache.calcite.adapter.jdbc with parameters of type RelCollation Modifier and Type Method Description JdbcRules.JdbcSort
JdbcRules.JdbcSort. copy(RelTraitSet traitSet, RelNode newInput, RelCollation newCollation, RexNode offset, RexNode fetch)
Constructors in org.apache.calcite.adapter.jdbc with parameters of type RelCollation Constructor Description JdbcSort(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
-
Uses of RelCollation in org.apache.calcite.adapter.mongodb
Methods in org.apache.calcite.adapter.mongodb with parameters of type RelCollation Modifier and Type Method Description Sort
MongoSort. copy(RelTraitSet traitSet, RelNode input, RelCollation newCollation, RexNode offset, RexNode fetch)
Constructors in org.apache.calcite.adapter.mongodb with parameters of type RelCollation Constructor Description MongoSort(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, RelCollation collation, RexNode offset, RexNode fetch)
-
Uses of RelCollation in org.apache.calcite.interpreter
Methods in org.apache.calcite.interpreter with parameters of type RelCollation Modifier and Type Method Description Bindables.BindableSort
Bindables.BindableSort. copy(RelTraitSet traitSet, RelNode newInput, RelCollation newCollation, RexNode offset, RexNode fetch)
Constructors in org.apache.calcite.interpreter with parameters of type RelCollation Constructor Description BindableSort(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
-
Uses of RelCollation in org.apache.calcite.jdbc
Fields in org.apache.calcite.jdbc with type parameters of type RelCollation Modifier and Type Field Description private java.util.List<RelCollation>
CalcitePrepare.CalciteSignature. collationList
Methods in org.apache.calcite.jdbc that return types with arguments of type RelCollation Modifier and Type Method Description java.util.List<RelCollation>
CalcitePrepare.CalciteSignature. getCollationList()
-
Uses of RelCollation in org.apache.calcite.plan
Methods in org.apache.calcite.plan that return types with arguments of type RelCollation Modifier and Type Method Description java.util.List<RelCollation>
RelOptAbstractTable. getCollationList()
java.util.List<RelCollation>
RelOptTable. getCollationList()
Returns a description of the physical ordering (or orderings) of the rows returned from this table. -
Uses of RelCollation in org.apache.calcite.prepare
Fields in org.apache.calcite.prepare with type parameters of type RelCollation Modifier and Type Field Description protected java.util.List<RelCollation>
Prepare.PreparedResultImpl. collations
Methods in org.apache.calcite.prepare that return types with arguments of type RelCollation Modifier and Type Method Description java.util.List<RelCollation>
RelOptTableImpl. getCollationList()
-
Uses of RelCollation in org.apache.calcite.rel
Classes in org.apache.calcite.rel that implement RelCollation Modifier and Type Class Description class
RelCollationImpl
Simple implementation ofRelCollation
.Fields in org.apache.calcite.rel declared as RelCollation Modifier and Type Field Description RelCollation
RelRoot. collation
static RelCollation
RelCollationImpl. EMPTY
Deprecated.static RelCollation
RelCollations. EMPTY
A collation indicating that a relation is not sorted.static RelCollation
RelCollationImpl. PRESERVE
Deprecated.static RelCollation
RelCollations. PRESERVE
Deprecated.Methods in org.apache.calcite.rel that return RelCollation Modifier and Type Method Description RelCollation
RelInput. getCollation()
RelCollation
RelCollationTraitDef. getDefault()
static RelCollation
RelCollationImpl. of(java.util.List<RelFieldCollation> fieldCollations)
Deprecated.static RelCollation
RelCollationImpl. of(RelFieldCollation... fieldCollations)
Deprecated.static RelCollation
RelCollations. of(int fieldIndex)
Creates a collation containing one field.static RelCollation
RelCollations. of(java.util.List<RelFieldCollation> fieldCollations)
static RelCollation
RelCollations. of(RelFieldCollation... fieldCollations)
static RelCollation
RelCollations. permute(RelCollation collation, java.util.Map<java.lang.Integer,java.lang.Integer> mapping)
Creates a copy of this collation that changes the ordinals of input fields.static RelCollation
RelCollations. permute(RelCollation collation, Mappings.TargetMapping mapping)
Creates a copy of this collation that changes the ordinals of input fields.static RelCollation
RelCollations. shift(RelCollation collation, int offset)
Methods in org.apache.calcite.rel that return types with arguments of type RelCollation Modifier and Type Method Description static java.util.List<RelCollation>
RelCollationImpl. createSingleton(int fieldIndex)
Deprecated.static java.util.List<RelCollation>
RelCollations. createSingleton(int fieldIndex)
Creates a list containing one collation containing one field.java.util.List<RelCollation>
AbstractRelNode. getCollationList()
Deprecated.java.util.List<RelCollation>
RelNode. getCollationList()
Deprecated.java.lang.Class<RelCollation>
RelCollationTraitDef. getTraitClass()
Methods in org.apache.calcite.rel with parameters of type RelCollation Modifier and Type Method Description boolean
RelCollationTraitDef. canConvert(RelOptPlanner planner, RelCollation fromTrait, RelCollation toTrait)
boolean
RelCollationTraitDef. canConvert(RelOptPlanner planner, RelCollation fromTrait, RelCollation toTrait, RelNode fromRel)
static boolean
RelCollations. contains(RelCollation collation, java.lang.Iterable<java.lang.Integer> keys)
Returns whether a collation indicates that the collection is sorted on a given list of keys.private static boolean
RelCollations. contains(RelCollation collation, java.util.List<java.lang.Integer> keys)
RelNode
RelCollationTraitDef. convert(RelOptPlanner planner, RelNode rel, RelCollation toCollation, boolean allowInfiniteCostConverters)
static java.util.List<java.lang.Integer>
RelCollationImpl. ordinals(RelCollation collation)
Deprecated.static java.util.List<java.lang.Integer>
RelCollations. ordinals(RelCollation collation)
Returns the indexes of the field collations in a given collation.static RelCollation
RelCollations. permute(RelCollation collation, java.util.Map<java.lang.Integer,java.lang.Integer> mapping)
Creates a copy of this collation that changes the ordinals of input fields.static RelCollation
RelCollations. permute(RelCollation collation, Mappings.TargetMapping mapping)
Creates a copy of this collation that changes the ordinals of input fields.static RelCollation
RelCollations. shift(RelCollation collation, int offset)
RelRoot
RelRoot. withCollation(RelCollation collation)
Method parameters in org.apache.calcite.rel with type arguments of type RelCollation Modifier and Type Method Description static boolean
RelCollations. contains(java.util.List<RelCollation> collations, ImmutableIntList keys)
Returns whether one of a list of collations indicates that the collection is sorted on the given list of keys.static boolean
RelCollationImpl. equal(java.util.List<RelCollation> collationList1, java.util.List<RelCollation> collationList2)
Deprecated.static boolean
RelCollations. equal(java.util.List<RelCollation> collationList1, java.util.List<RelCollation> collationList2)
static boolean
RelCollationImpl. isValid(RelDataType rowType, java.util.List<RelCollation> collationList, boolean fail)
Deprecated.static boolean
RelCollations. isValid(RelDataType rowType, java.util.List<RelCollation> collationList, boolean fail)
Checks that a collection of collations is valid.Constructors in org.apache.calcite.rel with parameters of type RelCollation Constructor Description RelRoot(RelNode rel, RelDataType validatedRowType, SqlKind kind, java.util.List<Pair<java.lang.Integer,java.lang.String>> fields, RelCollation collation)
Creates a RelRoot. -
Uses of RelCollation in org.apache.calcite.rel.core
Fields in org.apache.calcite.rel.core declared as RelCollation Modifier and Type Field Description RelCollation
AggregateCall. collation
RelCollation
Sort. collation
protected RelCollation
SortExchange. collation
protected RelCollation
Match. orderKeys
RelCollation
Window.Group. orderKeys
Methods in org.apache.calcite.rel.core that return RelCollation Modifier and Type Method Description RelCollation
Window.Group. collation()
RelCollation
AggregateCall. getCollation()
Returns the aggregate ordering definition (theWITHIN GROUP
clause in SQL), or the empty list if not specified.RelCollation
Sort. getCollation()
Returns the array ofRelFieldCollation
s asked for by the sort specification, from most significant to least significant.RelCollation
SortExchange. getCollation()
Returns the array ofRelFieldCollation
s asked for by the sort specification, from most significant to least significant.static RelCollation
Window. getCollation(java.util.List<RexFieldCollation> collations)
RelCollation
Match. getOrderKeys()
Methods in org.apache.calcite.rel.core that return types with arguments of type RelCollation Modifier and Type Method Description java.util.List<RelCollation>
Sort. getCollationList()
java.util.List<RelCollation>
TableScan. getCollationList()
Methods in org.apache.calcite.rel.core with parameters of type RelCollation Modifier and Type Method Description AggregateCall
AggregateCall. copy(java.util.List<java.lang.Integer> args, int filterArg, RelCollation collation)
Creates an equivalent AggregateCall with new argument ordinals.abstract Match
Match. copy(RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, java.util.Map<java.lang.String,RexNode> patternDefinitions, java.util.Map<java.lang.String,RexNode> measures, RexNode after, java.util.Map<java.lang.String,? extends java.util.SortedSet<java.lang.String>> subsets, boolean allRows, java.util.List<RexNode> partitionKeys, RelCollation orderKeys, RexNode interval)
Sort
Sort. copy(RelTraitSet traitSet, RelNode newInput, RelCollation newCollation)
abstract Sort
Sort. copy(RelTraitSet traitSet, RelNode newInput, RelCollation newCollation, RexNode offset, RexNode fetch)
abstract SortExchange
SortExchange. copy(RelTraitSet traitSet, RelNode newInput, RelDistribution newDistribution, RelCollation newCollation)
static AggregateCall
AggregateCall. create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, java.util.List<java.lang.Integer> argList, int filterArg, RelCollation collation, int groupCount, RelNode input, RelDataType type, java.lang.String name)
Creates an AggregateCall, inferring its type iftype
is null.static AggregateCall
AggregateCall. create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, java.util.List<java.lang.Integer> argList, int filterArg, RelCollation collation, RelDataType type, java.lang.String name)
Creates an AggregateCall.RelNode
RelFactories.MatchFactory. createMatch(RelNode input, RexNode pattern, RelDataType rowType, boolean strictStart, boolean strictEnd, java.util.Map<java.lang.String,RexNode> patternDefinitions, java.util.Map<java.lang.String,RexNode> measures, RexNode after, java.util.Map<java.lang.String,? extends java.util.SortedSet<java.lang.String>> subsets, boolean allRows, java.util.List<RexNode> partitionKeys, RelCollation orderKeys, RexNode interval)
Creates aMatch
.RelNode
RelFactories.MatchFactoryImpl. createMatch(RelNode input, RexNode pattern, RelDataType rowType, boolean strictStart, boolean strictEnd, java.util.Map<java.lang.String,RexNode> patternDefinitions, java.util.Map<java.lang.String,RexNode> measures, RexNode after, java.util.Map<java.lang.String,? extends java.util.SortedSet<java.lang.String>> subsets, boolean allRows, java.util.List<RexNode> partitionKeys, RelCollation orderKeys, RexNode interval)
RelNode
RelFactories.SortFactory. createSort(RelTraitSet traits, RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
Deprecated.RelNode
RelFactories.SortFactory. createSort(RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
Creates a sort.RelNode
RelFactories.SortFactoryImpl. createSort(RelTraitSet traits, RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
Deprecated.RelNode
RelFactories.SortFactoryImpl. createSort(RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
RelNode
RelFactories.SortExchangeFactory. createSortExchange(RelNode input, RelDistribution distribution, RelCollation collation)
Creates aSortExchange
.RelNode
RelFactories.SortExchangeFactoryImpl. createSortExchange(RelNode input, RelDistribution distribution, RelCollation collation)
Method parameters in org.apache.calcite.rel.core with type arguments of type RelCollation Modifier and Type Method Description Calc
Calc. copy(RelTraitSet traitSet, RelNode child, RexProgram program, java.util.List<RelCollation> collationList)
Deprecated.Constructors in org.apache.calcite.rel.core with parameters of type RelCollation Constructor Description AggregateCall(SqlAggFunction aggFunction, boolean distinct, boolean approximate, java.util.List<java.lang.Integer> argList, int filterArg, RelCollation collation, RelDataType type, java.lang.String name)
Creates an AggregateCall.Group(ImmutableBitSet keys, boolean isRows, RexWindowBound lowerBound, RexWindowBound upperBound, RelCollation orderKeys, java.util.List<Window.RexWinAggCall> aggCalls)
Match(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, java.util.Map<java.lang.String,RexNode> patternDefinitions, java.util.Map<java.lang.String,RexNode> measures, RexNode after, java.util.Map<java.lang.String,? extends java.util.SortedSet<java.lang.String>> subsets, boolean allRows, java.util.List<RexNode> partitionKeys, RelCollation orderKeys, RexNode interval)
Creates a Match.Sort(RelOptCluster cluster, RelTraitSet traits, RelNode child, RelCollation collation)
Creates a Sort.Sort(RelOptCluster cluster, RelTraitSet traits, RelNode child, RelCollation collation, RexNode offset, RexNode fetch)
Creates a Sort.SortExchange(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDistribution distribution, RelCollation collation)
Creates a SortExchange.Constructor parameters in org.apache.calcite.rel.core with type arguments of type RelCollation Constructor Description Calc(RelOptCluster cluster, RelTraitSet traits, RelNode child, RexProgram program, java.util.List<RelCollation> collationList)
Deprecated. -
Uses of RelCollation in org.apache.calcite.rel.externalize
Methods in org.apache.calcite.rel.externalize that return RelCollation Modifier and Type Method Description RelCollation
RelJson. toCollation(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> jsonFieldCollations)
-
Uses of RelCollation in org.apache.calcite.rel.logical
Fields in org.apache.calcite.rel.logical declared as RelCollation Modifier and Type Field Description private RelCollation
LogicalWindow.WindowKey. orderKeys
Methods in org.apache.calcite.rel.logical with parameters of type RelCollation Modifier and Type Method Description Match
LogicalMatch. copy(RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, java.util.Map<java.lang.String,RexNode> patternDefinitions, java.util.Map<java.lang.String,RexNode> measures, RexNode after, java.util.Map<java.lang.String,? extends java.util.SortedSet<java.lang.String>> subsets, boolean allRows, java.util.List<RexNode> partitionKeys, RelCollation orderKeys, RexNode interval)
Sort
LogicalSort. copy(RelTraitSet traitSet, RelNode newInput, RelCollation newCollation, RexNode offset, RexNode fetch)
SortExchange
LogicalSortExchange. copy(RelTraitSet traitSet, RelNode newInput, RelDistribution newDistribution, RelCollation newCollation)
static LogicalMatch
LogicalMatch. create(RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, java.util.Map<java.lang.String,RexNode> patternDefinitions, java.util.Map<java.lang.String,RexNode> measures, RexNode after, java.util.Map<java.lang.String,? extends java.util.SortedSet<java.lang.String>> subsets, boolean allRows, java.util.List<RexNode> partitionKeys, RelCollation orderKeys, RexNode interval)
Creates a LogicalMatch.static LogicalSort
LogicalSort. create(RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
Creates a LogicalSort.static LogicalSortExchange
LogicalSortExchange. create(RelNode input, RelDistribution distribution, RelCollation collation)
Creates a LogicalSortExchange.Constructors in org.apache.calcite.rel.logical with parameters of type RelCollation Constructor Description LogicalMatch(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDataType rowType, RexNode pattern, boolean strictStart, boolean strictEnd, java.util.Map<java.lang.String,RexNode> patternDefinitions, java.util.Map<java.lang.String,RexNode> measures, RexNode after, java.util.Map<java.lang.String,? extends java.util.SortedSet<java.lang.String>> subsets, boolean allRows, java.util.List<RexNode> partitionKeys, RelCollation orderKeys, RexNode interval)
Creates a LogicalMatch.LogicalSort(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
LogicalSortExchange(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDistribution distribution, RelCollation collation)
WindowKey(ImmutableBitSet groupSet, RelCollation orderKeys, boolean isRows, RexWindowBound lowerBound, RexWindowBound upperBound)
Constructor parameters in org.apache.calcite.rel.logical with type arguments of type RelCollation Constructor Description LogicalCalc(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, RexProgram program, java.util.List<RelCollation> collationList)
Deprecated. -
Uses of RelCollation in org.apache.calcite.rel.metadata
Methods in org.apache.calcite.rel.metadata that return types with arguments of type RelCollation Modifier and Type Method Description static java.util.List<RelCollation>
RelMdCollation. calc(RelMetadataQuery mq, RelNode input, RexProgram program)
Helper method to determine aCalc
's collation.com.google.common.collect.ImmutableList<RelCollation>
BuiltInMetadata.Collation. collations()
Determines which columns are sorted.com.google.common.collect.ImmutableList<RelCollation>
BuiltInMetadata.Collation.Handler. collations(RelNode r, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(EnumerableMergeJoin join, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(HepRelVertex rel, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(RelSubset rel, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(Calc calc, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(Filter rel, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(Project project, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(SortExchange sort, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(Sort sort, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(TableScan scan, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(Values values, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(Window rel, RelMetadataQuery mq)
com.google.common.collect.ImmutableList<RelCollation>
RelMdCollation. collations(RelNode rel, RelMetadataQuery mq)
Catch-all implementation forBuiltInMetadata.Collation.collations()
, invoked using reflection, for any relational expression not handled by a more specific method.com.google.common.collect.ImmutableList<RelCollation>
RelMetadataQuery. collations(RelNode rel)
Returns theBuiltInMetadata.Collation.collations()
statistic.static java.util.List<RelCollation>
RelMdCollation. filter(RelMetadataQuery mq, RelNode input)
Helper method to determine aFilter
's collation.static java.util.List<RelCollation>
RelMdCollation. limit(RelMetadataQuery mq, RelNode input)
Helper method to determine a limit's collation.static java.util.List<RelCollation>
RelMdCollation. mergeJoin(RelMetadataQuery mq, RelNode left, RelNode right, ImmutableIntList leftKeys, ImmutableIntList rightKeys)
Helper method to determine aJoin
's collation assuming that it uses a merge-join algorithm.static java.util.List<RelCollation>
RelMdCollation. project(RelMetadataQuery mq, RelNode input, java.util.List<? extends RexNode> projects)
Helper method to determine aProject
's collation.static java.util.List<RelCollation>
RelMdCollation. sort(RelCollation collation)
Helper method to determine aSort
's collation.static java.util.List<RelCollation>
RelMdCollation. table(RelOptTable table)
Helper method to determine aTableScan
's collation.static java.util.List<RelCollation>
RelMdCollation. values(RelMetadataQuery mq, RelDataType rowType, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Helper method to determine aValues
's collation.static java.util.List<RelCollation>
RelMdCollation. window(RelMetadataQuery mq, RelNode input, com.google.common.collect.ImmutableList<Window.Group> groups)
Helper method to determine aWindow
's collation.Methods in org.apache.calcite.rel.metadata with parameters of type RelCollation Modifier and Type Method Description static boolean
RelMdUtil. checkInputForCollationAndLimit(RelMetadataQuery mq, RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
Returns whether a relational expression is already sorted and has fewer rows than the sum of offset and limit.static java.util.List<RelCollation>
RelMdCollation. sort(RelCollation collation)
Helper method to determine aSort
's collation. -
Uses of RelCollation in org.apache.calcite.rel.mutable
Fields in org.apache.calcite.rel.mutable declared as RelCollation Modifier and Type Field Description RelCollation
MutableSort. collation
Methods in org.apache.calcite.rel.mutable with parameters of type RelCollation Modifier and Type Method Description static MutableSort
MutableSort. of(MutableRel input, RelCollation collation, RexNode offset, RexNode fetch)
Creates a MutableSort.Constructors in org.apache.calcite.rel.mutable with parameters of type RelCollation Constructor Description MutableSort(MutableRel input, RelCollation collation, RexNode offset, RexNode fetch)
-
Uses of RelCollation in org.apache.calcite.rex
Fields in org.apache.calcite.rex with type parameters of type RelCollation Modifier and Type Field Description private java.util.List<RelCollation>
RexCallBinding. inputCollations
Methods in org.apache.calcite.rex that return RelCollation Modifier and Type Method Description static RelCollation
RexUtil. apply(Mappings.TargetMapping mapping, RelCollation collation)
Applies a mapping to a collation.Methods in org.apache.calcite.rex that return types with arguments of type RelCollation Modifier and Type Method Description static java.util.List<RelCollation>
RexUtil. apply(Mappings.TargetMapping mapping, java.util.List<RelCollation> collationList)
Applies a mapping to a collation list.java.util.List<RelCollation>
RexProgram. getCollations(java.util.List<RelCollation> inputCollations)
Given a list of collations which hold for the input to this program, returns a list of collations which hold for its output.Methods in org.apache.calcite.rex with parameters of type RelCollation Modifier and Type Method Description static RelCollation
RexUtil. apply(Mappings.TargetMapping mapping, RelCollation collation)
Applies a mapping to a collation.Method parameters in org.apache.calcite.rex with type arguments of type RelCollation Modifier and Type Method Description static java.util.List<RelCollation>
RexUtil. apply(Mappings.TargetMapping mapping, java.util.List<RelCollation> collationList)
Applies a mapping to a collation list.static RexCallBinding
RexCallBinding. create(RelDataTypeFactory typeFactory, RexCall call, java.util.List<RelCollation> inputCollations)
Creates a binding of the appropriate type.static void
RexProgram. deduceCollations(java.util.List<RelCollation> outputCollations, int sourceCount, java.util.List<RexLocalRef> refs, java.util.List<RelCollation> inputCollations)
Given a list of expressions and a description of which are ordered, populates a list of collations, sorted in natural order.java.util.List<RelCollation>
RexProgram. getCollations(java.util.List<RelCollation> inputCollations)
Given a list of collations which hold for the input to this program, returns a list of collations which hold for its output. -
Uses of RelCollation in org.apache.calcite.schema
Methods in org.apache.calcite.schema that return types with arguments of type RelCollation Modifier and Type Method Description java.util.List<RelCollation>
Statistic. getCollations()
Returns the collections of columns on which this table is sorted. -
Uses of RelCollation in org.apache.calcite.sql2rel
Methods in org.apache.calcite.sql2rel that return RelCollation Modifier and Type Method Description private RelCollation
SqlToRelConverter. requiredCollation(RelNode r)
Methods in org.apache.calcite.sql2rel with parameters of type RelCollation Modifier and Type Method Description protected void
SqlToRelConverter. convertOrder(SqlSelect select, SqlToRelConverter.Blackboard bb, RelCollation collation, java.util.List<SqlNode> orderExprList, SqlNode offset, SqlNode fetch)
Converts a query's ORDER BY clause, if any. -
Uses of RelCollation in org.apache.calcite.tools
Methods in org.apache.calcite.tools with parameters of type RelCollation Modifier and Type Method Description com.google.common.collect.ImmutableList<RexNode>
RelBuilder. fields(RelCollation collation)
Returns references to fields for a given collation.RelBuilder
RelBuilder. sortExchange(RelDistribution distribution, RelCollation collation)
Creates a SortExchange by distribution and collation.
-