| Package | Description |
|---|---|
| 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.core |
Defines core relational expressions.
|
| 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.rules |
Provides a core set of planner rules.
|
| org.apache.calcite.rel.type |
Defines a type system for relational expressions.
|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.schema |
Schema SPI.
|
| org.apache.calcite.sql.type |
SQL type system.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| Constructor and Description |
|---|
JavaRecordType(List<RelDataTypeField> fields,
Class clazz) |
| Modifier and Type | Field and Description |
|---|---|
protected List<RelDataTypeField> |
RelOptUtil.RexInputConverter.destFields |
| Modifier and Type | Method and Description |
|---|---|
RelOptTable |
RelOptAbstractTable.extend(List<RelDataTypeField> extendedFields) |
RelOptTable |
RelOptTable.extend(List<RelDataTypeField> extendedFields)
Returns a table with the given extra fields.
|
static RexNode |
RelOptUtil.splitJoinCondition(List<RelDataTypeField> sysFieldList,
List<RelNode> inputs,
RexNode condition,
List<List<RexNode>> joinKeys,
List<Integer> filterNulls,
List<SqlOperator> rangeOp)
Splits out the equi-join (and optionally, a single non-equi) components
of a join condition, and returns what's left.
|
static RexNode |
RelOptUtil.splitJoinCondition(List<RelDataTypeField> sysFieldList,
RelNode leftRel,
RelNode rightRel,
RexNode condition,
List<RexNode> leftJoinKeys,
List<RexNode> rightJoinKeys,
List<Integer> filterNulls,
List<SqlOperator> rangeOp)
Splits out the equi-join (and optionally, a single non-equi) components
of a join condition, and returns what's left.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeField |
CalciteCatalogReader.field(RelDataType rowType,
String alias) |
| Modifier and Type | Method and Description |
|---|---|
RelOptTable |
RelOptTableImpl.extend(List<RelDataTypeField> extendedFields) |
| Modifier and Type | Method and Description |
|---|---|
List<RelDataTypeField> |
Join.getSystemFieldList()
Returns a list of system fields that will be prefixed to
output row type.
|
| Modifier and Type | Method and Description |
|---|---|
static RelDataType |
Join.createJoinType(RelDataTypeFactory typeFactory,
RelDataType leftType,
RelDataType rightType,
List<String> fieldNameList,
List<RelDataTypeField> systemFieldList)
Returns the type the row which results when two relations are joined.
|
static RelDataType |
Join.deriveJoinRowType(RelDataType leftType,
RelDataType rightType,
JoinRelType joinType,
RelDataTypeFactory typeFactory,
List<String> fieldNameList,
List<RelDataTypeField> systemFieldList)
Derives the type of a join relational expression.
|
RelNode |
TableScan.project(ImmutableBitSet fieldsUsed,
Set<RelDataTypeField> extraFields,
RelFactories.ProjectFactory projectFactory)
Projects a subset of the fields of the table, and also asks for "extra"
fields that were not included in the table's official type.
|
| Modifier and Type | Method and Description |
|---|---|
List<RelDataTypeField> |
LogicalJoin.getSystemFieldList() |
| Modifier and Type | Method and Description |
|---|---|
static LogicalJoin |
LogicalJoin.create(RelNode left,
RelNode right,
RexNode condition,
JoinRelType joinType,
Set<String> variablesStopped,
boolean semiJoinDone,
com.google.common.collect.ImmutableList<RelDataTypeField> systemFieldList)
Creates a LogicalJoin, flagged with whether it has been translated to a
semi-join.
|
| Constructor and Description |
|---|
LogicalJoin(RelOptCluster cluster,
RelNode left,
RelNode right,
RexNode condition,
JoinRelType joinType,
Set<String> variablesStopped,
boolean semiJoinDone,
com.google.common.collect.ImmutableList<RelDataTypeField> systemFieldList)
Deprecated.
|
LogicalJoin(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
RexNode condition,
JoinRelType joinType,
Set<String> variablesStopped,
boolean semiJoinDone,
com.google.common.collect.ImmutableList<RelDataTypeField> systemFieldList)
Creates a LogicalJoin.
|
| Modifier and Type | Method and Description |
|---|---|
protected Double |
RelMdSize.averageFieldValueSize(RelDataTypeField field)
Estimates the average size (in bytes) of a value of a field, knowing
nothing more than its type.
|
| Modifier and Type | Method and Description |
|---|---|
List<RelDataTypeField> |
LoptMultiJoin.getJoinFields(LoptJoinTree left,
LoptJoinTree right)
Retrieves the fields corresponding to a join between a left and right
tree
|
List<RelDataTypeField> |
LoptMultiJoin.getMultiJoinFields()
Returns array of fields contained within the multi-join
|
| Modifier and Type | Method and Description |
|---|---|
RexNode |
PushProjector.convertRefsAndExprs(RexNode rex,
List<RelDataTypeField> destFields,
int[] adjustments)
Clones an expression tree and walks through it, adjusting each
RexInputRef index by some amount, and converting expressions that need to
be preserved to field references.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RelDataTypeFieldImpl
Default implementation of
RelDataTypeField. |
| Modifier and Type | Field and Description |
|---|---|
protected List<RelDataTypeField> |
RelDataTypeImpl.fieldList |
| Modifier and Type | Method and Description |
|---|---|
static RelDataTypeField |
RelDataTypeImpl.extra(RelDataType rowType)
Returns the "extra" field in a row type whose presence signals that
fields will come into existence just by asking for them.
|
RelDataTypeField |
RelDataTypeImpl.getField(String fieldName,
boolean caseSensitive,
boolean elideRecord) |
RelDataTypeField |
RelDataType.getField(String fieldName,
boolean caseSensitive,
boolean elideRecord)
Looks up a field by name.
|
| Modifier and Type | Method and Description |
|---|---|
List<RelDataTypeField> |
RelCrossType.getFieldList() |
List<RelDataTypeField> |
RelDataTypeImpl.getFieldList() |
List<RelDataTypeField> |
RelDataType.getFieldList()
Gets the fields in a struct type.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory.FieldInfoBuilder |
RelDataTypeFactory.FieldInfoBuilder.add(RelDataTypeField field)
Adds a field.
|
| Constructor and Description |
|---|
RelCrossType(List<RelDataType> types,
List<RelDataTypeField> fields)
Creates a cartesian product type.
|
RelDataTypeImpl(List<? extends RelDataTypeField> fieldList)
Creates a RelDataTypeImpl.
|
RelRecordType(List<RelDataTypeField> fields)
Creates a
RecordType. |
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<RelDataTypeField,RexInputRef> |
RexBuilder.TO_INPUT_REF |
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeField |
RexFieldAccess.getField() |
| Modifier and Type | Method and Description |
|---|---|
static RexInputRef |
RexInputRef.of(int index,
List<RelDataTypeField> fields)
Creates a reference to a given field in a list of fields.
|
static Pair<RexNode,String> |
RexInputRef.of2(int index,
List<RelDataTypeField> fields)
Creates a reference to a given field in a list of fields.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
ExtensibleTable.extend(List<RelDataTypeField> fields)
Returns a table that has the row type of this table plus the given
fields.
|
| Constructor and Description |
|---|
AbstractSqlType(SqlTypeName typeName,
boolean isNullable,
List<? extends RelDataTypeField> fields)
Creates an AbstractSqlType.
|
ObjectSqlType(SqlTypeName typeName,
SqlIdentifier sqlIdentifier,
boolean nullable,
List<? extends RelDataTypeField> fields,
RelDataTypeComparability comparability)
Constructs an object type.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeField |
SqlValidatorCatalogReader.field(RelDataType rowType,
String alias)
Finds a field with a given name, using the case-sensitivity of the current
session.
|
static RelDataTypeField |
SqlValidatorUtil.lookupField(boolean caseSensitive,
boolean elideRecord,
RelDataType rowType,
String columnName)
Looks up a field with a given name, returning null if not found.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SqlValidatorImpl.isSystemField(RelDataTypeField field) |
boolean |
SqlValidator.isSystemField(RelDataTypeField field)
Returns whether a field is a system field.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<RelDataTypeField> |
SqlToRelConverter.getSystemFields()
Returns a list of fields to be prefixed to each relational expression.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.