| 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.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.externalize |
Facilities to externalize
RelNodes to and from
XML and JSON format. |
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| Modifier and Type | Method and Description |
|---|---|
Pair<Expression,Expression> |
PhysTypeImpl.generateCollationKey(List<RelFieldCollation> collations) |
Pair<Expression,Expression> |
PhysType.generateCollationKey(List<RelFieldCollation> collations)
Returns a lambda to create a collation key and a comparator.
|
| Modifier and Type | Method and Description |
|---|---|
SqlNode |
JdbcImplementor.Context.toSql(RelFieldCollation collation)
Converts a collation to an ORDER BY item.
|
| Modifier and Type | Method and Description |
|---|---|
RelFieldCollation |
RelFieldCollation.copy(int target)
Creates a copy of this RelFieldCollation against a different field.
|
RelFieldCollation |
RelFieldCollation.shift(int offset)
Returns a copy of this RelFieldCollation with the field index shifted
offset to the right. |
| Modifier and Type | Method and Description |
|---|---|
List<RelFieldCollation> |
RelCollationImpl.getFieldCollations() |
List<RelFieldCollation> |
RelCollation.getFieldCollations()
Returns the ordinals and directions of the columns in this ordering.
|
| Modifier and Type | Method and Description |
|---|---|
static RelCollation |
RelCollationImpl.of(RelFieldCollation... fieldCollations)
Deprecated.
|
static RelCollation |
RelCollations.of(RelFieldCollation... fieldCollations) |
| Modifier and Type | Method and Description |
|---|---|
static RelCollation |
RelCollationImpl.of(List<RelFieldCollation> fieldCollations)
Deprecated.
|
static RelCollation |
RelCollations.of(List<RelFieldCollation> fieldCollations) |
| Constructor and Description |
|---|
RelCollationImpl(com.google.common.collect.ImmutableList<RelFieldCollation> fieldCollations) |
| Modifier and Type | Method and Description |
|---|---|
RelFieldCollation |
RelJson.toFieldCollation(Map<String,Object> map) |
| Modifier and Type | Method and Description |
|---|---|
static RelFieldCollation |
RexUtil.apply(Mappings.TargetMapping mapping,
RelFieldCollation fieldCollation)
Applies a mapping to a field collation.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RelFieldCollation> |
RexUtil.applyFields(Mappings.TargetMapping mapping,
List<RelFieldCollation> fieldCollations)
Applies a mapping to a list of field collations.
|
| Modifier and Type | Method and Description |
|---|---|
static RelFieldCollation |
RexUtil.apply(Mappings.TargetMapping mapping,
RelFieldCollation fieldCollation)
Applies a mapping to a field collation.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RelFieldCollation> |
RexUtil.applyFields(Mappings.TargetMapping mapping,
List<RelFieldCollation> fieldCollations)
Applies a mapping to a list of field collations.
|
| Modifier and Type | Method and Description |
|---|---|
protected RelFieldCollation |
SqlToRelConverter.convertOrderItem(SqlSelect select,
SqlNode orderItem,
List<SqlNode> extraExprs,
RelFieldCollation.Direction direction,
RelFieldCollation.NullDirection nullDirection) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
SqlToRelConverter.gatherOrderExprs(SqlToRelConverter.Blackboard bb,
SqlSelect select,
SqlNodeList orderList,
List<SqlNode> extraOrderExprs,
List<RelFieldCollation> collationList)
Creates a list of collations required to implement the ORDER BY clause,
if there is one.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.