| Package | Description |
|---|---|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| org.apache.calcite.interpreter |
Provides an implementation of relational expressions using an interpreter.
|
| 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 externalize
RelNodes 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.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.
|
| Modifier and Type | Method and 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 |
PhysTypeImpl.generateComparator(RelCollation collation) |
Expression |
PhysType.generateComparator(RelCollation collation)
Returns a comparator.
|
| Constructor and Description |
|---|
EnumerableSort(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
RelCollation collation,
RexNode offset,
RexNode fetch)
Creates an EnumerableSort.
|
| Constructor and Description |
|---|
EnumerableCalc(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
RexProgram program,
List<RelCollation> collationList)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
JdbcRules.JdbcSort |
JdbcRules.JdbcSort.copy(RelTraitSet traitSet,
RelNode newInput,
RelCollation newCollation,
RexNode offset,
RexNode fetch) |
| Constructor and Description |
|---|
JdbcRules.JdbcSort(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
RelCollation collation) |
| Modifier and Type | Method and Description |
|---|---|
Bindables.BindableSort |
Bindables.BindableSort.copy(RelTraitSet traitSet,
RelNode newInput,
RelCollation newCollation,
RexNode offset,
RexNode fetch) |
| Constructor and Description |
|---|
Bindables.BindableSort(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
RelCollation collation,
RexNode offset,
RexNode fetch) |
| Modifier and Type | Method and Description |
|---|---|
List<RelCollation> |
RelOptAbstractTable.getCollationList() |
List<RelCollation> |
RelOptTable.getCollationList()
Returns a description of the physical ordering (or orderings) of the rows
returned from this table.
|
| Modifier and Type | Method and Description |
|---|---|
List<RelCollation> |
RelOptTableImpl.getCollationList() |
| Modifier and Type | Class and Description |
|---|---|
class |
RelCollationImpl
Simple implementation of
RelCollation. |
| Modifier and Type | Field and Description |
|---|---|
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
A collation that cannot be replicated by applying a sort.
|
| Modifier and Type | Method and Description |
|---|---|
RelCollation |
RelInput.getCollation() |
RelCollation |
RelCollationTraitDef.getDefault() |
static RelCollation |
RelCollationImpl.of(List<RelFieldCollation> fieldCollations)
Deprecated.
|
static RelCollation |
RelCollations.of(List<RelFieldCollation> fieldCollations) |
static RelCollation |
RelCollationImpl.of(RelFieldCollation... fieldCollations)
Deprecated.
|
static RelCollation |
RelCollations.of(RelFieldCollation... fieldCollations) |
static RelCollation |
RelCollations.shift(RelCollation collation,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
static List<RelCollation> |
RelCollationImpl.createSingleton(int fieldIndex)
Deprecated.
|
static List<RelCollation> |
RelCollations.createSingleton(int fieldIndex)
Creates a list containing one collation containing one field.
|
List<RelCollation> |
AbstractRelNode.getCollationList()
Deprecated.
|
List<RelCollation> |
RelNode.getCollationList()
Deprecated.
|
Class<RelCollation> |
RelCollationTraitDef.getTraitClass() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RelCollationTraitDef.canConvert(RelOptPlanner planner,
RelCollation fromTrait,
RelCollation toTrait) |
static boolean |
RelCollations.contains(RelCollation collation,
Iterable<Integer> keys)
Returns whether a collation indicates that the collection is sorted on
a given list of keys.
|
RelNode |
RelCollationTraitDef.convert(RelOptPlanner planner,
RelNode rel,
RelCollation toCollation,
boolean allowInfiniteCostConverters) |
static List<Integer> |
RelCollationImpl.ordinals(RelCollation collation)
Deprecated.
|
static List<Integer> |
RelCollations.ordinals(RelCollation collation)
Returns the indexes of the field collations in a given collation.
|
static RelCollation |
RelCollations.shift(RelCollation collation,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RelCollations.contains(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(List<RelCollation> collationList1,
List<RelCollation> collationList2)
Deprecated.
|
static boolean |
RelCollationImpl.equal(List<RelCollation> collationList1,
List<RelCollation> collationList2)
Deprecated.
|
static boolean |
RelCollations.equal(List<RelCollation> collationList1,
List<RelCollation> collationList2) |
static boolean |
RelCollations.equal(List<RelCollation> collationList1,
List<RelCollation> collationList2) |
static boolean |
RelCollationImpl.isValid(RelDataType rowType,
List<RelCollation> collationList,
boolean fail)
Deprecated.
|
static boolean |
RelCollations.isValid(RelDataType rowType,
List<RelCollation> collationList,
boolean fail)
Checks that a collection of collations is valid.
|
| Modifier and Type | Field and Description |
|---|---|
RelCollation |
Sort.collation |
protected RelCollation |
SortExchange.collation |
RelCollation |
Window.Group.orderKeys |
| Modifier and Type | Method and Description |
|---|---|
RelCollation |
Window.Group.collation() |
RelCollation |
Sort.getCollation()
Returns the array of
RelFieldCollations asked for by the sort
specification, from most significant to least significant. |
RelCollation |
SortExchange.getCollation()
Returns the array of
RelFieldCollations
asked for by the sort specification, from most significant to least
significant. |
static RelCollation |
Window.getCollation(List<RexFieldCollation> collations) |
| Modifier and Type | Method and Description |
|---|---|
List<RelCollation> |
Sort.getCollationList() |
List<RelCollation> |
TableScan.getCollationList() |
| Modifier and Type | Method and Description |
|---|---|
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) |
RelNode |
RelFactories.SortFactory.createSort(RelTraitSet traits,
RelNode child,
RelCollation collation,
RexNode offset,
RexNode fetch)
Creates a sort.
|
| Modifier and Type | Method and Description |
|---|---|
Calc |
Calc.copy(RelTraitSet traitSet,
RelNode child,
RexProgram program,
List<RelCollation> collationList)
Deprecated.
|
| Constructor and Description |
|---|
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.
|
Window.Group(ImmutableBitSet keys,
boolean isRows,
RexWindowBound lowerBound,
RexWindowBound upperBound,
RelCollation orderKeys,
List<Window.RexWinAggCall> aggCalls) |
| Constructor and Description |
|---|
Calc(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
RexProgram program,
List<RelCollation> collationList)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
RelCollation |
RelJson.toCollation(List<Map<String,Object>> jsonFieldCollations) |
| Modifier and Type | Method and Description |
|---|---|
Sort |
LogicalSort.copy(RelTraitSet traitSet,
RelNode newInput,
RelCollation newCollation,
RexNode offset,
RexNode fetch) |
static LogicalSort |
LogicalSort.create(RelNode input,
RelCollation collation,
RexNode offset,
RexNode fetch)
Creates a LogicalSort.
|
| Constructor and Description |
|---|
LogicalCalc(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
RexProgram program,
List<RelCollation> collationList)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RelCollation> |
RelMdCollation.calc(RelNode input,
RexProgram program)
Helper method to determine a
Calc's collation. |
com.google.common.collect.ImmutableList<RelCollation> |
BuiltInMetadata.Collation.collations()
Determines which columns are sorted.
|
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(EnumerableMergeJoin join) |
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(Filter rel) |
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(HepRelVertex rel) |
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(Project project) |
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(RelNode rel)
Fallback method to deduce collations for any relational expression not
handled by a more specific method.
|
static com.google.common.collect.ImmutableList<RelCollation> |
RelMetadataQuery.collations(RelNode rel)
Returns the
BuiltInMetadata.Collation.collations()
statistic. |
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(RelSubset rel) |
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(Sort sort) |
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(SortExchange sort) |
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(TableScan scan) |
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(Values values) |
com.google.common.collect.ImmutableList<RelCollation> |
RelMdCollation.collations(Window rel) |
static List<RelCollation> |
RelMdCollation.filter(RelNode input)
Helper method to determine a
Filter's collation. |
static List<RelCollation> |
RelMdCollation.limit(RelNode input)
Helper method to determine a
limit's collation.
|
static List<RelCollation> |
RelMdCollation.mergeJoin(RelNode left,
RelNode right,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys)
Helper method to determine a
Join's collation assuming that it
uses a merge-join algorithm. |
static List<RelCollation> |
RelMdCollation.project(RelNode input,
List<? extends RexNode> projects)
Helper method to determine a
Project's collation. |
static List<RelCollation> |
RelMdCollation.sort(RelCollation collation)
Helper method to determine a
Sort's collation. |
static List<RelCollation> |
RelMdCollation.table(RelOptTable table)
Helper method to determine a
TableScan's collation. |
static List<RelCollation> |
RelMdCollation.values(RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Helper method to determine a
Values's collation. |
static List<RelCollation> |
RelMdCollation.window(RelNode input,
com.google.common.collect.ImmutableList<Window.Group> groups)
Helper method to determine a
Window's collation. |
| Modifier and Type | Method and Description |
|---|---|
static List<RelCollation> |
RelMdCollation.sort(RelCollation collation)
Helper method to determine a
Sort's collation. |
| Modifier and Type | Method and Description |
|---|---|
static RelCollation |
RexUtil.apply(Mappings.TargetMapping mapping,
RelCollation collation)
Applies a mapping to a collation.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RelCollation> |
RexUtil.apply(Mappings.TargetMapping mapping,
List<RelCollation> collationList)
Applies a mapping to a collation list.
|
List<RelCollation> |
RexProgram.getCollations(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.
|
| Modifier and Type | Method and Description |
|---|---|
static RelCollation |
RexUtil.apply(Mappings.TargetMapping mapping,
RelCollation collation)
Applies a mapping to a collation.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RelCollation> |
RexUtil.apply(Mappings.TargetMapping mapping,
List<RelCollation> collationList)
Applies a mapping to a collation list.
|
static void |
RexProgram.deduceCollations(List<RelCollation> outputCollations,
int sourceCount,
List<RexLocalRef> refs,
List<RelCollation> inputCollations)
Given a list of expressions and a description of which are ordered,
computes a list of collations.
|
static void |
RexProgram.deduceCollations(List<RelCollation> outputCollations,
int sourceCount,
List<RexLocalRef> refs,
List<RelCollation> inputCollations)
Given a list of expressions and a description of which are ordered,
computes a list of collations.
|
List<RelCollation> |
RexProgram.getCollations(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.
|
| Modifier and Type | Method and Description |
|---|---|
List<RelCollation> |
Statistic.getCollations()
Returns the collections of columns on which this table is sorted.
|
| Modifier and Type | Method and Description |
|---|---|
static Statistic |
Statistics.of(double rowCount,
List<ImmutableBitSet> keys,
List<RelCollation> collations)
Returns a statistic with a given row count and set of unique keys.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SqlToRelConverter.convertOrder(SqlSelect select,
SqlToRelConverter.Blackboard bb,
RelCollation collation,
List<SqlNode> orderExprList,
SqlNode offset,
SqlNode fetch)
Converts a query's ORDER BY clause, if any.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.