| Package | Description |
|---|---|
| org.apache.calcite.adapter.java |
Query provider based on Java in-memory data
structures.
|
| 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.externalize |
Facilities to externalize
RelNodes to and from
XML and JSON format. |
| 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.schema.impl |
Utilities to help implement Calcite's SPIs.
|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| org.apache.calcite.sql.advise |
Provides hints and corrections for editing SQL statements.
|
| org.apache.calcite.sql.fun |
Defines the set of standard SQL row-level functions and
operators.
|
| 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.
|
| org.apache.calcite.tools |
Provides utility classes.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
JavaTypeFactory
Type factory that can register Java classes as record types.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JavaTypeFactoryImpl
Implementation of
JavaTypeFactory. |
| Modifier and Type | Field and Description |
|---|---|
RelDataTypeFactory |
CalcitePrepare.ParseResult.typeFactory |
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory |
RelOptSchema.getTypeFactory()
Returns the
type factory used to generate
types for this schema. |
RelDataTypeFactory |
RelOptCluster.getTypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
RelOptCluster |
RelOptQuery.createCluster(RelDataTypeFactory typeFactory,
RexBuilder rexBuilder)
Creates a cluster.
|
static RelDataType |
RelOptUtil.createDmlRowType(SqlKind kind,
RelDataTypeFactory typeFactory)
Creates the row type descriptor for the result of a DML operation, which
is a single column named ROWCOUNT of type BIGINT for INSERT;
a single column named PLAN for EXPLAIN.
|
static RelDataType |
RelOptUtil.permute(RelDataTypeFactory typeFactory,
RelDataType rowType,
Mapping mapping)
Permutes a record type according to a mapping.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory |
CalciteCatalogReader.getTypeFactory() |
| 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.
|
static RelDataType |
Aggregate.deriveRowType(RelDataTypeFactory typeFactory,
RelDataType inputRowType,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Computes the row type of an
Aggregate before it exists. |
| Constructor and Description |
|---|
Aggregate.AggCallBinding(RelDataTypeFactory typeFactory,
SqlAggFunction aggFunction,
List<RelDataType> operands,
int groupCount)
Creates an AggCallBinding
|
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
RelJson.toType(RelDataTypeFactory typeFactory,
Object o) |
| Modifier and Type | Class and Description |
|---|---|
class |
RelDataTypeFactoryImpl
Abstract base for implementations of
RelDataTypeFactory. |
| Constructor and Description |
|---|
RelDataTypeFactory.FieldInfoBuilder(RelDataTypeFactory typeFactory)
Creates a FieldInfoBuilder with the given type factory.
|
| Modifier and Type | Field and Description |
|---|---|
protected RelDataTypeFactory |
RexBuilder.typeFactory |
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory |
RexBuilder.getTypeFactory()
Returns this RexBuilder's type factory
|
| Modifier and Type | Method and Description |
|---|---|
static RelDataType |
RexUtil.createStructType(RelDataTypeFactory typeFactory,
List<? extends RexNode> exprs,
List<String> names)
Creates a record type with specified field names.
|
static RelDataType |
RexUtil.createStructType(RelDataTypeFactory typeFactory,
List<RexNode> exprs)
Creates a record type with anonymous field names.
|
static boolean |
RexUtil.isNullabilityCast(RelDataTypeFactory typeFactory,
RexNode node)
Returns whether an expression is a cast just for the purposes of
nullability, not changing any other aspect of the type.
|
| Constructor and Description |
|---|
RexBuilder(RelDataTypeFactory typeFactory)
Creates a RexBuilder.
|
RexCallBinding(RelDataTypeFactory typeFactory,
SqlOperator sqlOperator,
List<? extends RexNode> operands) |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
AggregateFunction.getReturnType(RelDataTypeFactory typeFactory)
Returns the return type of this function, constructed using the given
type factory.
|
RelDataType |
ScalarFunction.getReturnType(RelDataTypeFactory typeFactory)
Returns the return type of this function, constructed using the given
type factory.
|
RelDataType |
Table.getRowType(RelDataTypeFactory typeFactory)
Returns this table's row type.
|
RelDataType |
TableFunction.getRowType(RelDataTypeFactory typeFactory,
List<Object> arguments)
Returns the record type of the table yielded by this function when
applied to given arguments.
|
RelDataType |
FunctionParameter.getType(RelDataTypeFactory typeFactory)
Returns the type of this parameter.
|
static CalciteSchema.FunctionEntry |
Schemas.resolve(RelDataTypeFactory typeFactory,
String name,
Collection<CalciteSchema.FunctionEntry> functionEntries,
List<RelDataType> argumentTypes) |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
AggregateFunctionImpl.getReturnType(RelDataTypeFactory typeFactory) |
RelDataType |
ScalarFunctionImpl.getReturnType(RelDataTypeFactory typeFactory) |
RelDataType |
StarTable.getRowType(RelDataTypeFactory typeFactory) |
RelDataType |
ViewTable.getRowType(RelDataTypeFactory typeFactory) |
RelDataType |
TableFunctionImpl.getRowType(RelDataTypeFactory typeFactory,
List<Object> arguments) |
| Modifier and Type | Field and Description |
|---|---|
protected RelDataTypeFactory |
SqlOperatorBinding.typeFactory |
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory |
SqlOperatorBinding.getTypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static RelDataType |
SqlUtil.createNlsStringType(RelDataTypeFactory typeFactory,
NlsString str)
Creates the type of an
NlsString. |
RelDataType |
SqlNumericLiteral.createSqlType(RelDataTypeFactory typeFactory) |
RelDataType |
SqlDateLiteral.createSqlType(RelDataTypeFactory typeFactory) |
RelDataType |
SqlLiteral.createSqlType(RelDataTypeFactory typeFactory) |
RelDataType |
SqlDataTypeSpec.deriveType(RelDataTypeFactory typeFactory)
Does not throw an error if the type is not built-in.
|
List<RelDataType> |
SqlRankFunction.getParameterTypes(RelDataTypeFactory typeFactory) |
RelDataType |
SqlRankFunction.getReturnType(RelDataTypeFactory typeFactory) |
RelDataType |
SqlOperator.inferReturnType(RelDataTypeFactory typeFactory,
List<RelDataType> operandTypes)
Infers the type of a call to this operator with a given set of operand
types.
|
| Constructor and Description |
|---|
ExplicitOperatorBinding(RelDataTypeFactory typeFactory,
SqlOperator operator,
List<RelDataType> types) |
SqlOperatorBinding(RelDataTypeFactory typeFactory,
SqlOperator sqlOperator)
Creates a SqlOperatorBinding.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
SqlAdvisorGetHintsFunction.getRowType(RelDataTypeFactory typeFactory,
List<Object> arguments) |
| Constructor and Description |
|---|
SqlAdvisorValidator(SqlOperatorTable opTab,
SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory,
SqlConformance conformance)
Creates a SqlAdvisor validator.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SqlTypeFactoryImpl
SqlTypeFactoryImpl provides a default implementation of
RelDataTypeFactory which supports SQL types. |
| Modifier and Type | Method and Description |
|---|---|
static RelDataType |
SqlTypeUtil.addCharsetAndCollation(RelDataType type,
RelDataTypeFactory typeFactory)
Adds collation and charset to a character type, returns other types
unchanged.
|
static RelDataType |
SqlTypeUtil.createArrayType(RelDataTypeFactory typeFactory,
RelDataType type,
boolean nullable) |
static RelDataType |
SqlTypeUtil.createEmptyStructType(RelDataTypeFactory typeFactory)
Records a struct type with no fields.
|
static RelDataType |
SqlTypeUtil.createMapType(RelDataTypeFactory typeFactory,
RelDataType keyType,
RelDataType valueType,
boolean nullable) |
static RelDataType |
SqlTypeUtil.createMultisetType(RelDataTypeFactory typeFactory,
RelDataType type,
boolean nullable) |
static boolean |
SqlTypeUtil.equalSansNullability(RelDataTypeFactory factory,
RelDataType type1,
RelDataType type2)
Returns whether two types are equal, ignoring nullability.
|
static RelDataType |
SqlTypeUtil.flattenRecordType(RelDataTypeFactory typeFactory,
RelDataType recordType,
int[] flatteningMap)
Flattens a record type by recursively expanding any fields which are
themselves record types.
|
static RelDataType |
SqlTypeUtil.makeNullableIfOperandsAre(RelDataTypeFactory typeFactory,
List<RelDataType> argTypes,
RelDataType type)
Recreates a given RelDataType with nullability iff any of the param
argTypes are nullable.
|
static RelDataType |
SqlTypeUtil.promoteToRowType(RelDataTypeFactory typeFactory,
RelDataType type,
String fieldName)
Promotes a type to a row type (does nothing if it already is one).
|
| Modifier and Type | Field and Description |
|---|---|
protected RelDataTypeFactory |
SqlValidatorImpl.typeFactory |
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory |
SqlValidatorImpl.getTypeFactory() |
RelDataTypeFactory |
SqlValidator.getTypeFactory()
Returns the type factory used by this validator.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Object> |
SqlUserDefinedTableMacro.convertArguments(RelDataTypeFactory typeFactory,
List<SqlNode> operandList,
Function function,
SqlIdentifier opName,
boolean failOnNonLiteral)
Converts arguments from
SqlNode to
java object format. |
static RelDataType |
SqlValidatorUtil.createTypeFromProjection(RelDataType type,
List<String> columnNameList,
RelDataTypeFactory typeFactory,
boolean caseSensitive,
boolean elideRecord) |
Type |
SqlUserDefinedTableFunction.getElementType(RelDataTypeFactory typeFactory,
List<SqlNode> operandList)
Returns the row type of the table yielded by this function when
applied to given arguments.
|
List<RelDataType> |
SqlUserDefinedAggFunction.getParameterTypes(RelDataTypeFactory typeFactory) |
RelDataType |
SqlUserDefinedAggFunction.getReturnType(RelDataTypeFactory typeFactory) |
RelDataType |
SqlUserDefinedTableFunction.getRowType(RelDataTypeFactory typeFactory,
List<SqlNode> operandList)
Returns the record type of the table yielded by this function when
applied to given arguments.
|
TranslatableTable |
SqlUserDefinedTableMacro.getTable(RelDataTypeFactory typeFactory,
List<SqlNode> operandList)
Returns the table in this UDF, or null if there is no table.
|
static SqlValidatorWithHints |
SqlValidatorUtil.newValidator(SqlOperatorTable opTab,
SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory)
Factory method for
SqlValidator. |
| Constructor and Description |
|---|
SqlValidatorImpl(SqlOperatorTable opTab,
SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory,
SqlConformance conformance)
Creates a validator.
|
| Modifier and Type | Field and Description |
|---|---|
protected RelDataTypeFactory |
SqlToRelConverter.typeFactory |
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory |
SqlRexContext.getTypeFactory()
Returns the type factory.
|
RelDataTypeFactory |
SqlToRelConverter.Blackboard.getTypeFactory() |
RelDataTypeFactory |
SqlToRelConverter.AggConverter.getTypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory |
Planner.getTypeFactory()
Returns the type factory.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.