| Package | Description |
|---|---|
| org.apache.calcite.adapter.clone |
Provides utility classes.
|
| org.apache.calcite.adapter.elasticsearch |
Base classes for a query provider based on an Elasticsearch DB.
|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.adapter.java |
Query provider based on Java in-memory data
structures.
|
| 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.jdbc |
JDBC driver for Calcite.
|
| org.apache.calcite.materialize |
Management of materialized query results.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.plan.hep |
Provides a heuristic planner implementation for the interfaces in
org.apache.calcite.plan. |
| org.apache.calcite.plan.volcano |
Optimizes 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.rel.mutable |
Defines mutable relational expressions.
|
| org.apache.calcite.rel.rel2sql |
Translates a relational expression to SQL parse tree.
|
| 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.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.dialect |
SQL unparsers for JDBC dialects.
|
| 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 | Method and Description |
|---|---|
RelDataType |
ArrayTable.getRowType(RelDataTypeFactory typeFactory) |
RelDataType |
ListTable.getRowType(RelDataTypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
private void |
ColumnLoader.load(RelDataType elementType,
List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList,
int[] sort) |
private static List |
ColumnLoader.wrap(org.apache.calcite.avatica.ColumnMetaData.Rep rep,
List list,
RelDataType type)
Adapt for some types that we represent differently internally than their
JDBC types.
|
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
ElasticsearchTableScan.projectRowType |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
ElasticsearchTableScan.deriveRowType() |
RelDataType |
AbstractElasticsearchTable.getRowType(RelDataTypeFactory relDataTypeFactory) |
| Modifier and Type | Method and Description |
|---|---|
Project |
ElasticsearchProject.copy(RelTraitSet relTraitSet,
RelNode input,
List<RexNode> projects,
RelDataType relDataType) |
(package private) static List<String> |
ElasticsearchRules.elasticsearchFieldNames(RelDataType rowType) |
| Constructor and Description |
|---|
ElasticsearchProject(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<? extends RexNode> projects,
RelDataType rowType) |
ElasticsearchTableScan(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table,
AbstractElasticsearchTable elasticsearchTable,
RelDataType projectRowType)
Creates an ElasticsearchTableScan.
|
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
PhysTypeImpl.rowType |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
PhysType.getRowType()
Returns the SQL row type.
|
RelDataType |
PhysTypeImpl.getRowType() |
RelDataType |
RexToLixTranslator.nullifyType(RelDataType type,
boolean nullable) |
RelDataType |
AggContext.returnRelType()
Returns the return type of the aggregate as
RelDataType. |
RelDataType |
EnumerableAggregate.AggContextImpl.returnRelType() |
private static RelDataType |
RexImpTable.toSql(RelDataTypeFactory typeFactory,
RelDataType type) |
private RelDataType |
PhysTypeImpl.toStruct(RelDataType type) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static List<RelDataType> |
EnumUtils.fieldRowTypes(RelDataType inputRowType,
List<? extends RexNode> extraInputs,
List<Integer> argList) |
List<? extends RelDataType> |
AggContext.keyRelTypes()
Returns the types of the group key as
RelDataType. |
List<? extends RelDataType> |
EnumerableAggregate.AggContextImpl.keyRelTypes() |
List<? extends RelDataType> |
AggContext.parameterRelTypes()
Returns the parameter types of the aggregate as
RelDataType. |
List<? extends RelDataType> |
EnumerableAggregate.AggContextImpl.parameterRelTypes() |
| Modifier and Type | Method and Description |
|---|---|
EnumerableTableFunctionScan |
EnumerableTableFunctionScan.copy(RelTraitSet traitSet,
List<RelNode> inputs,
RexNode rexCall,
Type elementType,
RelDataType rowType,
Set<RelColumnMapping> columnMappings) |
EnumerableProject |
EnumerableProject.copy(RelTraitSet traitSet,
RelNode input,
List<RexNode> projects,
RelDataType rowType) |
static EnumerableProject |
EnumerableProject.create(RelNode input,
List<? extends RexNode> projects,
RelDataType rowType)
Creates an EnumerableProject, specifying row type rather than field
names.
|
static EnumerableValues |
EnumerableValues.create(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates an EnumerableValues.
|
(package private) static List<RelDataType> |
EnumUtils.fieldRowTypes(RelDataType inputRowType,
List<? extends RexNode> extraInputs,
List<Integer> argList) |
private boolean |
EnumerableTableScan.hasCollectionField(RelDataType rowType) |
(package private) static Type |
EnumUtils.javaClass(JavaTypeFactory typeFactory,
RelDataType type) |
(package private) abstract Type |
JavaRowFormat.javaFieldClass(JavaTypeFactory typeFactory,
RelDataType type,
int index)
Returns the java class that is used to physically store the given field.
|
private Primitive |
RexToLixTranslator.javaPrimitive(RelDataType type) |
(package private) static Class |
EnumUtils.javaRowClass(JavaTypeFactory typeFactory,
RelDataType type) |
(package private) abstract Type |
JavaRowFormat.javaRowClass(JavaTypeFactory typeFactory,
RelDataType type) |
RelDataType |
RexToLixTranslator.nullifyType(RelDataType type,
boolean nullable) |
static PhysType |
PhysTypeImpl.of(JavaTypeFactory typeFactory,
RelDataType rowType,
JavaRowFormat format) |
static PhysType |
PhysTypeImpl.of(JavaTypeFactory typeFactory,
RelDataType rowType,
JavaRowFormat format,
boolean optimize) |
JavaRowFormat |
JavaRowFormat.optimize(RelDataType rowType) |
(package private) static Type |
EnumUtils.toInternal(RelDataType type) |
private static RelDataType |
RexImpTable.toSql(RelDataTypeFactory typeFactory,
RelDataType type) |
private RelDataType |
PhysTypeImpl.toStruct(RelDataType type) |
(package private) Expression |
RexToLixTranslator.translateCast(RelDataType sourceType,
RelDataType targetType,
Expression operand) |
static Expression |
RexToLixTranslator.translateLiteral(RexLiteral literal,
RelDataType type,
JavaTypeFactory typeFactory,
RexImpTable.NullAs nullAs)
Translates a literal.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
StrictAggImplementor.anyNullable(List<? extends RelDataType> types) |
(package private) static List<Type> |
EnumUtils.fieldTypes(JavaTypeFactory typeFactory,
List<? extends RelDataType> inputTypes) |
| Constructor and Description |
|---|
EnumerableProject(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<? extends RexNode> projects,
RelDataType rowType)
Creates an EnumerableProject.
|
EnumerableProject(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<? extends RexNode> projects,
RelDataType rowType,
int flags)
Deprecated.
|
EnumerableTableFunctionScan(RelOptCluster cluster,
RelTraitSet traits,
List<RelNode> inputs,
Type elementType,
RelDataType rowType,
RexNode call,
Set<RelColumnMapping> columnMappings) |
EnumerableValues(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples,
RelTraitSet traitSet)
Creates an EnumerableValues.
|
EnumerableWindow(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates an EnumerableWindowRel.
|
PhysTypeImpl(JavaTypeFactory typeFactory,
RelDataType rowType,
Type javaRowClass,
JavaRowFormat format)
Creates a PhysTypeImpl.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
JavaTypeFactory.createStructType(Class clazz)
Creates a record type based upon the public fields of a Java class.
|
RelDataType |
JavaTypeFactory.createType(Type type)
Creates a type, deducing whether a record, scalar or primitive type
is needed.
|
RelDataType |
ReflectiveSchema.ReflectiveTable.getRowType(RelDataTypeFactory typeFactory) |
RelDataType |
JavaTypeFactory.toSql(RelDataType type)
Converts a type in Java format to a SQL-oriented type.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
JavaTypeFactory.getJavaClass(RelDataType type) |
RelDataType |
JavaTypeFactory.toSql(RelDataType type)
Converts a type in Java format to a SQL-oriented type.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
JdbcTable.getRowType(RelDataTypeFactory typeFactory) |
private RelDataType |
JdbcSchema.parseTypeString(RelDataTypeFactory typeFactory,
String typeString)
Given "INTEGER", returns BasicSqlType(INTEGER).
|
private RelDataType |
JdbcSchema.sqlType(RelDataTypeFactory typeFactory,
int dataType,
int precision,
int scale,
String typeString) |
| Modifier and Type | Method and Description |
|---|---|
JdbcRules.JdbcProject |
JdbcRules.JdbcProject.copy(RelTraitSet traitSet,
RelNode input,
List<RexNode> projects,
RelDataType rowType) |
| Constructor and Description |
|---|
JdbcProject(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<? extends RexNode> projects,
RelDataType rowType) |
JdbcProject(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<RexNode> projects,
RelDataType rowType,
int flags)
Deprecated.
|
JdbcValues(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples,
RelTraitSet traitSet) |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
Compiler.combinedRowType(List<RelNode> inputs) |
RelDataType |
Interpreter.CompilerImpl.combinedRowType(List<RelNode> inputs) |
RelDataType |
Bindables.BindableTableScan.deriveRowType() |
| Modifier and Type | Method and Description |
|---|---|
Scalar |
JaninoRexCompiler.compile(List<RexNode> nodes,
RelDataType inputRowType) |
Scalar |
Compiler.compile(List<RexNode> nodes,
RelDataType inputRowType)
Compiles an expression to an executable form.
|
Scalar |
Interpreter.FooCompiler.compile(List<RexNode> nodes,
RelDataType inputRowType) |
Scalar |
Interpreter.CompilerImpl.compile(List<RexNode> nodes,
RelDataType inputRowType) |
Scalar |
Interpreter.ScalarCompiler.compile(List<RexNode> nodes,
RelDataType inputRowType) |
Bindables.BindableProject |
Bindables.BindableProject.copy(RelTraitSet traitSet,
RelNode input,
List<RexNode> projects,
RelDataType rowType) |
| Constructor and Description |
|---|
BindableProject(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<? extends RexNode> projects,
RelDataType rowType) |
BindableValues(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples,
RelTraitSet traitSet) |
BindableWindow(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates an BindableWindowRel.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JavaRecordType
Record type based on a Java class.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) RelDataType |
JavaTypeFactoryImpl.SyntheticRecordType.relType |
RelDataType |
CalcitePrepare.ParseResult.rowType |
RelDataType |
CalcitePrepare.CalciteSignature.rowType |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
JavaTypeFactoryImpl.createStructType(Class type) |
RelDataType |
JavaTypeFactoryImpl.createType(Type type) |
RelDataType |
CalciteMetaImpl.MetadataTable.getRowType(RelDataTypeFactory typeFactory) |
RelDataType |
JavaTypeFactoryImpl.toSql(RelDataType type) |
static RelDataType |
JavaTypeFactoryImpl.toSql(RelDataTypeFactory typeFactory,
RelDataType type)
Converts a type in Java format to a SQL-oriented type.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
JavaTypeFactoryImpl.getJavaClass(RelDataType type) |
RelDataType |
JavaTypeFactoryImpl.toSql(RelDataType type) |
static RelDataType |
JavaTypeFactoryImpl.toSql(RelDataTypeFactory typeFactory,
RelDataType type)
Converts a type in Java format to a SQL-oriented type.
|
| Constructor and Description |
|---|
AnalyzeViewResult(CalcitePrepareImpl prepare,
SqlValidator validator,
String sql,
SqlNode sqlNode,
RelDataType rowType,
RelRoot root,
Table table,
com.google.common.collect.ImmutableList<String> tablePath,
RexNode constraint,
ImmutableIntList columnMapping,
boolean modifiable) |
CalciteSignature(String sql,
List<org.apache.calcite.avatica.AvaticaParameter> parameterList,
Map<String,Object> internalParameters,
RelDataType rowType,
List<org.apache.calcite.avatica.ColumnMetaData> columns,
org.apache.calcite.avatica.Meta.CursorFactory cursorFactory,
CalciteSchema rootSchema,
List<RelCollation> collationList,
long maxRowCount,
Bindable<T> bindable)
Deprecated.
|
CalciteSignature(String sql,
List<org.apache.calcite.avatica.AvaticaParameter> parameterList,
Map<String,Object> internalParameters,
RelDataType rowType,
List<org.apache.calcite.avatica.ColumnMetaData> columns,
org.apache.calcite.avatica.Meta.CursorFactory cursorFactory,
CalciteSchema rootSchema,
List<RelCollation> collationList,
long maxRowCount,
Bindable<T> bindable,
org.apache.calcite.avatica.Meta.StatementType statementType) |
ConvertResult(CalcitePrepareImpl prepare,
SqlValidator validator,
String sql,
SqlNode sqlNode,
RelDataType rowType,
RelRoot root) |
ParseResult(CalcitePrepareImpl prepare,
SqlValidator validator,
String sql,
SqlNode sqlNode,
RelDataType rowType) |
SyntheticRecordType(RelDataType relType,
String name) |
| Modifier and Type | Field and Description |
|---|---|
(package private) RelDataType |
MaterializationActor.Materialization.rowType |
| Constructor and Description |
|---|
Materialization(MaterializationKey key,
CalciteSchema rootSchema,
CalciteSchema.TableEntry materializedTable,
String sql,
RelDataType rowType,
List<String> viewSchemaPath)
Creates a materialization.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) RelDataType |
RexImplicationChecker.rowType |
protected RelDataType |
RelOptAbstractTable.rowType |
| Modifier and Type | Field and Description |
|---|---|
private static com.google.common.base.Function<RelDataTypeField,RelDataType> |
RelOptUtil.GET_TYPE |
| Modifier and Type | Method and Description |
|---|---|
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.
|
RelDataType |
RelOptTable.getRowType()
Describes the type of rows returned by this table.
|
RelDataType |
RelOptNode.getRowType() |
RelDataType |
RelOptAbstractTable.getRowType() |
static RelDataType |
RelOptUtil.permute(RelDataTypeFactory typeFactory,
RelDataType rowType,
Mapping mapping)
Permutes a record type according to a mapping.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RelDataType> |
RelOptUtil.getFieldTypeList(RelDataType type)
Returns a list of the types of the fields in a given struct type.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
RelOptUtil.TypeDumper.accept(RelDataType type) |
static boolean |
RelOptUtil.areRowTypesEqual(RelDataType rowType1,
RelDataType rowType2,
boolean compareNames) |
static RelNode |
RelOptUtil.createCastRel(RelNode rel,
RelDataType castRowType,
boolean rename)
Creates a projection which casts a rel's output to a desired row type.
|
static RelNode |
RelOptUtil.createCastRel(RelNode rel,
RelDataType castRowType,
boolean rename,
RelFactories.ProjectFactory projectFactory)
Creates a projection which casts a rel's output to a desired row type.
|
static RelNode |
RelOptUtil.createRenameRel(RelDataType outputType,
RelNode rel)
Deprecated.
|
static String |
RelOptUtil.dumpType(RelDataType type) |
static boolean |
RelOptUtil.eq(String desc1,
RelDataType type1,
String desc2,
RelDataType type2,
Litmus litmus)
Returns whether two types are equal using '='.
|
static boolean |
RelOptUtil.equal(String desc1,
RelDataType type1,
String desc2,
RelDataType type2,
Litmus litmus)
Returns whether two types are equal using
RelOptUtil.areRowTypesEqual(RelDataType, RelDataType, boolean). |
RelRoot |
RelOptTable.ViewExpander.expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath)
Returns a relational expression that is to be substituted for an access
to a SQL view.
|
static Map<Integer,RexNode> |
RelOptUtil.getColumnConstraints(ModifiableView modifiableViewTable,
RelDataType targetRowType,
RelDataTypeFactory typeFactory)
Returns a mapping of the column ordinal in the underlying table to a column
constraint of the modifiable view.
|
static List<RelDataType> |
RelOptUtil.getFieldTypeList(RelDataType type)
Returns a list of the types of the fields in a given struct type.
|
static DataContext |
VisitorDataContext.of(RelDataType rowType,
List<Pair<RexInputRef,RexNode>> usageList) |
static DataContext |
VisitorDataContext.of(RelDataType rowType,
RexNode rex) |
static Mappings.TargetMapping |
RelOptUtil.permutation(List<RexNode> nodes,
RelDataType inputRowType)
Returns a permutation describing where output fields come from.
|
static Mappings.TargetMapping |
RelOptUtil.permutationIgnoreCast(List<RexNode> nodes,
RelDataType inputRowType)
Returns a permutation describing where output fields come from.
|
static RelDataType |
RelOptUtil.permute(RelDataTypeFactory typeFactory,
RelDataType rowType,
Mapping mapping)
Permutes a record type according to a mapping.
|
static RelNode |
RelOptUtil.renameIfNecessary(RelNode rel,
RelDataType desiredRowType)
Deprecated.
|
| Constructor and Description |
|---|
RelOptAbstractTable(RelOptSchema schema,
String name,
RelDataType rowType) |
RexImplicationChecker(RexBuilder builder,
RexExecutorImpl executor,
RelDataType rowType) |
| Modifier and Type | Method and Description |
|---|---|
protected RelDataType |
HepRelVertex.deriveRowType() |
| Modifier and Type | Field and Description |
|---|---|
private Map<Pair<String,RelDataType>,RelNode> |
VolcanoPlanner.mapDigestToRel
Canonical map from
digest to the unique
relational expression with that digest. |
| Modifier and Type | Method and Description |
|---|---|
protected RelDataType |
RelSubset.deriveRowType() |
| Modifier and Type | Method and Description |
|---|---|
private static Pair<String,RelDataType> |
VolcanoPlanner.key(RelNode rel)
Computes the key for
VolcanoPlanner.mapDigestToRel. |
| Modifier and Type | Field and Description |
|---|---|
protected RelDataType |
Prepare.parameterRowType |
private RelDataType |
Prepare.PreparedExplain.parameterRowType |
protected RelDataType |
Prepare.PreparedResultImpl.parameterRowType |
private RelDataType |
RelOptTableImpl.rowType |
private RelDataType |
Prepare.PreparedExplain.rowType |
protected RelDataType |
Prepare.PreparedResultImpl.rowType |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
CalciteCatalogReader.createTypeFromProjection(RelDataType type,
List<String> columnNameList) |
protected RelDataType |
CalciteSqlValidator.getLogicalSourceRowType(RelDataType sourceRowType,
SqlInsert insert) |
protected RelDataType |
CalciteSqlValidator.getLogicalTargetRowType(RelDataType targetRowType,
SqlInsert insert) |
RelDataType |
CalciteCatalogReader.getNamedType(SqlIdentifier typeName) |
RelDataType |
Prepare.PreparedExplain.getParameterRowType() |
RelDataType |
Prepare.PreparedResult.getParameterRowType()
Returns a record type whose fields are the parameters of this statement.
|
RelDataType |
Prepare.PreparedResultImpl.getParameterRowType() |
RelDataType |
Prepare.PreparedResultImpl.getPhysicalRowType()
Returns the physical row type of this prepared statement.
|
RelDataType |
RelOptTableImpl.getRowType() |
private static RelDataType |
CalcitePrepareImpl.makeStruct(RelDataTypeFactory typeFactory,
RelDataType type) |
static RelDataType |
RelOptTableImpl.realRowType(RelOptTable table)
Returns the row type of a table after any
ColumnStrategy.VIRTUAL
columns have been removed. |
private static RelDataType |
CalciteCatalogReader.toSql(RelDataTypeFactory typeFactory,
RelDataType type) |
protected RelDataType |
CalcitePrepareImpl.EmptyScalarTranslator.type(Expression expression) |
| Modifier and Type | Method and Description |
|---|---|
private static List<RelDataType> |
CalciteCatalogReader.toSql(RelDataTypeFactory typeFactory,
List<RelDataType> types) |
Pair<SqlNode,RelDataType> |
PlannerImpl.validateAndGetType(SqlNode sqlNode) |
| Modifier and Type | Method and Description |
|---|---|
private org.apache.calcite.avatica.ColumnMetaData.AvaticaType |
CalcitePrepareImpl.avaticaType(JavaTypeFactory typeFactory,
RelDataType type,
RelDataType fieldType) |
boolean |
Prepare.AbstractPreparingTable.columnHasDefaultValue(RelDataType rowType,
int ordinal,
InitializerContext initializerContext) |
RelOptTableImpl |
RelOptTableImpl.copy(RelDataType newRowType)
Creates a copy of this RelOptTable.
|
static RelOptTableImpl |
RelOptTableImpl.create(RelOptSchema schema,
RelDataType rowType,
CalciteSchema.TableEntry tableEntry,
Double rowCount) |
static RelOptTableImpl |
RelOptTableImpl.create(RelOptSchema schema,
RelDataType rowType,
List<String> names,
Expression expression) |
static RelOptTableImpl |
RelOptTableImpl.create(RelOptSchema schema,
RelDataType rowType,
Table table,
com.google.common.collect.ImmutableList<String> names) |
static RelOptTableImpl |
RelOptTableImpl.create(RelOptSchema schema,
RelDataType rowType,
Table table,
Path path) |
protected abstract Prepare.PreparedResult |
Prepare.createPreparedExplanation(RelDataType resultType,
RelDataType parameterRowType,
RelRoot root,
SqlExplainFormat format,
SqlExplainLevel detailLevel) |
protected Prepare.PreparedResult |
CalcitePrepareImpl.CalcitePreparingStmt.createPreparedExplanation(RelDataType resultType,
RelDataType parameterRowType,
RelRoot root,
SqlExplainFormat format,
SqlExplainLevel detailLevel) |
RelDataType |
CalciteCatalogReader.createTypeFromProjection(RelDataType type,
List<String> columnNameList) |
RelRoot |
LixToRelTranslator.expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath) |
RelRoot |
Prepare.expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath) |
RelRoot |
CalcitePrepareImpl.CalcitePreparingStmt.expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath) |
RelRoot |
PlannerImpl.ViewExpanderImpl.expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath) |
RelDataTypeField |
CalciteCatalogReader.field(RelDataType rowType,
String alias) |
private static String |
CalcitePrepareImpl.getClassName(RelDataType type) |
private List<org.apache.calcite.avatica.ColumnMetaData> |
CalcitePrepareImpl.getColumnMetaDataList(JavaTypeFactory typeFactory,
RelDataType x,
RelDataType jdbcType,
List<List<String>> originList) |
protected RelDataType |
CalciteSqlValidator.getLogicalSourceRowType(RelDataType sourceRowType,
SqlInsert insert) |
protected RelDataType |
CalciteSqlValidator.getLogicalTargetRowType(RelDataType targetRowType,
SqlInsert insert) |
private static int |
CalcitePrepareImpl.getPrecision(RelDataType type) |
private static int |
CalcitePrepareImpl.getScale(RelDataType type) |
private static String |
CalcitePrepareImpl.getTypeName(RelDataType type)
Returns the type name in string form.
|
private int |
CalcitePrepareImpl.getTypeOrdinal(RelDataType type) |
private static RelDataType |
CalcitePrepareImpl.makeStruct(RelDataTypeFactory typeFactory,
RelDataType type) |
private org.apache.calcite.avatica.ColumnMetaData |
CalcitePrepareImpl.metaData(JavaTypeFactory typeFactory,
int ordinal,
String fieldName,
RelDataType type,
RelDataType fieldType,
List<String> origins) |
private Prepare.PreparedResult |
CalcitePrepareImpl.CalcitePreparingStmt.prepare_(com.google.common.base.Supplier<RelNode> fn,
RelDataType resultType) |
Prepare.PreparedResult |
CalcitePrepareImpl.CalcitePreparingStmt.prepareQueryable(Queryable queryable,
RelDataType resultType) |
private static RelDataType |
CalciteCatalogReader.toSql(RelDataTypeFactory typeFactory,
RelDataType type) |
| Modifier and Type | Method and Description |
|---|---|
private static List<RelDataType> |
CalciteCatalogReader.toSql(RelDataTypeFactory typeFactory,
List<RelDataType> types) |
| Constructor and Description |
|---|
CalcitePreparedExplain(RelDataType resultType,
RelDataType parameterRowType,
RelRoot root,
SqlExplainFormat format,
SqlExplainLevel detailLevel) |
PreparedExplain(RelDataType rowType,
RelDataType parameterRowType,
RelRoot root,
SqlExplainFormat format,
SqlExplainLevel detailLevel) |
PreparedResultImpl(RelDataType rowType,
RelDataType parameterRowType,
List<List<String>> fieldOrigins,
List<RelCollation> collations,
RelNode rootRel,
TableModify.Operation tableModOp,
boolean isDml) |
RelOptTableImpl(RelOptSchema schema,
RelDataType rowType,
List<String> names,
Table table,
com.google.common.base.Function<Class,Expression> expressionFunction,
Double rowCount) |
| Modifier and Type | Field and Description |
|---|---|
protected RelDataType |
AbstractRelNode.rowType
Cached type of this relational expression.
|
RelDataType |
RelRoot.validatedRowType |
| Modifier and Type | Method and Description |
|---|---|
protected RelDataType |
AbstractRelNode.deriveRowType() |
protected RelDataType |
SingleRel.deriveRowType() |
RelDataType |
AbstractRelNode.getExpectedInputRowType(int ordinalInParent) |
RelDataType |
RelNode.getExpectedInputRowType(int ordinalInParent)
Returns the type of the rows expected for an input.
|
RelDataType |
AbstractRelNode.getRowType() |
RelDataType |
RelNode.getRowType()
Returns the type of the rows returned by this relational expression.
|
RelDataType |
RelInput.getRowType(String tag) |
RelDataType |
RelInput.getRowType(String expressionsTag,
String fieldsTag) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RelCollations.isValid(RelDataType rowType,
List<RelCollation> collationList,
boolean fail)
Checks that a collection of collations is valid.
|
static boolean |
RelCollationImpl.isValid(RelDataType rowType,
List<RelCollation> collationList,
boolean fail)
Deprecated.
|
static RelRoot |
RelRoot.of(RelNode rel,
RelDataType rowType,
SqlKind kind)
Creates a simple RelRoot.
|
| Constructor and Description |
|---|
RelRoot(RelNode rel,
RelDataType validatedRowType,
SqlKind kind,
List<Pair<Integer,String>> fields,
RelCollation collation)
Creates a RelRoot.
|
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
TableModify.inputRowType |
RelDataType |
AggregateCall.type |
| Modifier and Type | Field and Description |
|---|---|
private List<RelDataType> |
Aggregate.AggCallBinding.operands |
| Modifier and Type | Method and Description |
|---|---|
static RelDataType |
Join.createJoinType(RelDataTypeFactory typeFactory,
RelDataType leftType,
RelDataType rightType,
List<String> fieldNameList,
List<RelDataTypeField> systemFieldList)
Deprecated.
|
static RelDataType |
Collect.deriveCollectRowType(SingleRel rel,
String fieldName)
Derives the output type of a collect relational expression.
|
static RelDataType |
Join.deriveJoinRowType(RelDataType leftType,
RelDataType rightType,
JoinRelType joinType,
RelDataTypeFactory typeFactory,
List<String> fieldNameList,
List<RelDataTypeField> systemFieldList)
Deprecated.
|
RelDataType |
TableScan.deriveRowType() |
RelDataType |
SemiJoin.deriveRowType() |
protected RelDataType |
Uncollect.deriveRowType() |
RelDataType |
TableModify.deriveRowType() |
protected RelDataType |
Correlate.deriveRowType() |
protected RelDataType |
SetOp.deriveRowType() |
protected RelDataType |
Aggregate.deriveRowType() |
protected RelDataType |
Collect.deriveRowType() |
protected RelDataType |
Values.deriveRowType() |
protected RelDataType |
Join.deriveRowType() |
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. |
static RelDataType |
Uncollect.deriveUncollectRowType(RelNode rel,
boolean withOrdinality)
Returns the row type returned by applying the 'UNNEST' operation to a
relational expression.
|
RelDataType |
TableModify.getExpectedInputRowType(int ordinalInParent) |
RelDataType |
Aggregate.AggCallBinding.getOperandType(int ordinal) |
RelDataType |
AggregateCall.getType()
Returns the result type.
|
| Modifier and Type | Method and Description |
|---|---|
RexCall |
Window.RexWinAggCall.clone(RelDataType type,
List<RexNode> operands) |
abstract Match |
Match.copy(RelNode input,
RelDataType rowType,
RexNode pattern,
boolean strictStart,
boolean strictEnd,
Map<String,RexNode> patternDefinitions,
Map<String,RexNode> measures,
RexNode after,
Map<String,? extends SortedSet<String>> subsets,
boolean allRows,
List<RexNode> partitionKeys,
RelCollation orderKeys,
RexNode interval) |
abstract TableFunctionScan |
TableFunctionScan.copy(RelTraitSet traitSet,
List<RelNode> inputs,
RexNode rexCall,
Type elementType,
RelDataType rowType,
Set<RelColumnMapping> columnMappings)
Copies this relational expression, substituting traits and
inputs.
|
abstract Project |
Project.copy(RelTraitSet traitSet,
RelNode input,
List<RexNode> projects,
RelDataType rowType)
Copies a project.
|
Project |
Project.copy(RelTraitSet traitSet,
RelNode input,
List<RexNode> projects,
RelDataType rowType,
int flags)
Deprecated.
|
static AggregateCall |
AggregateCall.create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
List<Integer> argList,
int filterArg,
int groupCount,
RelNode input,
RelDataType type,
String name)
Creates an AggregateCall, inferring its type if
type is null. |
static AggregateCall |
AggregateCall.create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
List<Integer> argList,
int filterArg,
RelDataType type,
String name)
Creates an AggregateCall.
|
static AggregateCall |
AggregateCall.create(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
int filterArg,
int groupCount,
RelNode input,
RelDataType type,
String name)
Deprecated.
|
static AggregateCall |
AggregateCall.create(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
int filterArg,
RelDataType type,
String name)
Deprecated.
|
static AggregateCall |
AggregateCall.create(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
int groupCount,
RelNode input,
RelDataType type,
String name)
Deprecated.
|
static RelDataType |
Join.createJoinType(RelDataTypeFactory typeFactory,
RelDataType leftType,
RelDataType rightType,
List<String> fieldNameList,
List<RelDataTypeField> systemFieldList)
Deprecated.
|
RelNode |
RelFactories.MatchFactory.createMatch(RelNode input,
RexNode pattern,
RelDataType rowType,
boolean strictStart,
boolean strictEnd,
Map<String,RexNode> patternDefinitions,
Map<String,RexNode> measures,
RexNode after,
Map<String,? extends SortedSet<String>> subsets,
boolean allRows,
List<RexNode> partitionKeys,
RelCollation orderKeys,
RexNode interval)
Creates a
Match. |
RelNode |
RelFactories.MatchFactoryImpl.createMatch(RelNode input,
RexNode pattern,
RelDataType rowType,
boolean strictStart,
boolean strictEnd,
Map<String,RexNode> patternDefinitions,
Map<String,RexNode> measures,
RexNode after,
Map<String,? extends SortedSet<String>> subsets,
boolean allRows,
List<RexNode> partitionKeys,
RelCollation orderKeys,
RexNode interval) |
RelNode |
RelFactories.ValuesFactory.createValues(RelOptCluster cluster,
RelDataType rowType,
List<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a Values.
|
RelNode |
RelFactories.ValuesFactoryImpl.createValues(RelOptCluster cluster,
RelDataType rowType,
List<com.google.common.collect.ImmutableList<RexLiteral>> tuples) |
static RelDataType |
Join.deriveJoinRowType(RelDataType leftType,
RelDataType rightType,
JoinRelType joinType,
RelDataTypeFactory typeFactory,
List<String> fieldNameList,
List<RelDataTypeField> systemFieldList)
Deprecated.
|
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 |
|---|
AggregateCall(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
List<Integer> argList,
int filterArg,
RelDataType type,
String name)
Creates an AggregateCall.
|
AggregateCall(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
RelDataType type,
String name)
Deprecated.
|
Match(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
RelDataType rowType,
RexNode pattern,
boolean strictStart,
boolean strictEnd,
Map<String,RexNode> patternDefinitions,
Map<String,RexNode> measures,
RexNode after,
Map<String,? extends SortedSet<String>> subsets,
boolean allRows,
List<RexNode> partitionKeys,
RelCollation orderKeys,
RexNode interval)
Creates a Match.
|
Project(RelOptCluster cluster,
RelTraitSet traits,
RelNode input,
List<? extends RexNode> projects,
RelDataType rowType)
Creates a Project.
|
Project(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<? extends RexNode> projects,
RelDataType rowType,
int flags)
Deprecated.
|
RexMRAggCall(SqlAggFunction aggFun,
RelDataType type,
List<RexNode> operands,
int ordinal) |
RexWinAggCall(SqlAggFunction aggFun,
RelDataType type,
List<RexNode> operands,
int ordinal,
boolean distinct)
Creates a RexWinAggCall.
|
TableFunctionScan(RelOptCluster cluster,
RelTraitSet traits,
List<RelNode> inputs,
RexNode rexCall,
Type elementType,
RelDataType rowType,
Set<RelColumnMapping> columnMappings)
Creates a
TableFunctionScan. |
Values(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples,
RelTraitSet traits)
Creates a new Values.
|
Window(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates a window relational expression.
|
| Constructor and Description |
|---|
AggCallBinding(RelDataTypeFactory typeFactory,
SqlAggFunction aggFunction,
List<RelDataType> operands,
int groupCount,
boolean filter)
Creates an AggCallBinding
|
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
RelJson.toType(RelDataTypeFactory typeFactory,
Object o) |
| Modifier and Type | Method and Description |
|---|---|
private Object |
RelJson.toJson(RelDataType node) |
| Modifier and Type | Method and Description |
|---|---|
Match |
LogicalMatch.copy(RelNode input,
RelDataType rowType,
RexNode pattern,
boolean strictStart,
boolean strictEnd,
Map<String,RexNode> patternDefinitions,
Map<String,RexNode> measures,
RexNode after,
Map<String,? extends SortedSet<String>> subsets,
boolean allRows,
List<RexNode> partitionKeys,
RelCollation orderKeys,
RexNode interval) |
LogicalTableFunctionScan |
LogicalTableFunctionScan.copy(RelTraitSet traitSet,
List<RelNode> inputs,
RexNode rexCall,
Type elementType,
RelDataType rowType,
Set<RelColumnMapping> columnMappings) |
LogicalProject |
LogicalProject.copy(RelTraitSet traitSet,
RelNode input,
List<RexNode> projects,
RelDataType rowType) |
static LogicalProject |
LogicalProject.create(RelNode input,
List<? extends RexNode> projects,
RelDataType rowType)
Creates a LogicalProject, specifying row type rather than field names.
|
static LogicalMatch |
LogicalMatch.create(RelNode input,
RelDataType rowType,
RexNode pattern,
boolean strictStart,
boolean strictEnd,
Map<String,RexNode> patternDefinitions,
Map<String,RexNode> measures,
RexNode after,
Map<String,? extends SortedSet<String>> subsets,
boolean allRows,
List<RexNode> partitionKeys,
RelCollation orderKeys,
RexNode interval)
Creates a LogicalMatch.
|
static LogicalTableFunctionScan |
LogicalTableFunctionScan.create(RelOptCluster cluster,
List<RelNode> inputs,
RexNode rexCall,
Type elementType,
RelDataType rowType,
Set<RelColumnMapping> columnMappings)
Creates a LogicalTableFunctionScan.
|
static LogicalValues |
LogicalValues.create(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a LogicalValues.
|
static LogicalWindow |
LogicalWindow.create(RelTraitSet traitSet,
RelNode input,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates a LogicalWindow.
|
static LogicalValues |
LogicalValues.createEmpty(RelOptCluster cluster,
RelDataType rowType)
Creates a LogicalValues that outputs no rows of a given row type.
|
| Constructor and Description |
|---|
LogicalMatch(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
RelDataType rowType,
RexNode pattern,
boolean strictStart,
boolean strictEnd,
Map<String,RexNode> patternDefinitions,
Map<String,RexNode> measures,
RexNode after,
Map<String,? extends SortedSet<String>> subsets,
boolean allRows,
List<RexNode> partitionKeys,
RelCollation orderKeys,
RexNode interval)
Creates a LogicalMatch.
|
LogicalProject(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<? extends RexNode> projects,
RelDataType rowType)
Creates a LogicalProject.
|
LogicalProject(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<? extends RexNode> projects,
RelDataType rowType,
int flags)
Deprecated.
|
LogicalTableFunctionScan(RelOptCluster cluster,
List<RelNode> inputs,
RexNode rexCall,
Type elementType,
RelDataType rowType,
Set<RelColumnMapping> columnMappings)
Deprecated.
|
LogicalTableFunctionScan(RelOptCluster cluster,
RelTraitSet traitSet,
List<RelNode> inputs,
RexNode rexCall,
Type elementType,
RelDataType rowType,
Set<RelColumnMapping> columnMappings)
Creates a
LogicalTableFunctionScan. |
LogicalValues(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Deprecated.
|
LogicalValues(RelOptCluster cluster,
RelTraitSet traitSet,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a LogicalValues.
|
LogicalWindow(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates a LogicalWindow.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
RelMdSize.averageTypeValueSize(RelDataType type)
Estimates the average size (in bytes) of a value of a type.
|
double |
RelMdSize.typeValueSize(RelDataType type,
Comparable value)
Estimates the average size (in bytes) of a value of a type.
|
static RelDistribution |
RelMdDistribution.values(RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Helper method to determine a
Values's distribution. |
static List<RelCollation> |
RelMdCollation.values(RelMetadataQuery mq,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Helper method to determine a
Values's collation. |
| Modifier and Type | Field and Description |
|---|---|
RelDataType |
MutableRel.rowType |
| Modifier and Type | Method and Description |
|---|---|
static MutableRel |
MutableRels.createCastRel(MutableRel rel,
RelDataType castRowType,
boolean rename)
|
static MutableUnion |
MutableUnion.of(RelDataType rowType,
List<MutableRel> inputs,
boolean all)
Creates a MutableUnion.
|
static MutableMinus |
MutableMinus.of(RelDataType rowType,
List<MutableRel> inputs,
boolean all)
Creates a MutableMinus.
|
static MutableIntersect |
MutableIntersect.of(RelDataType rowType,
List<MutableRel> inputs,
boolean all)
Creates a MutableIntersect.
|
static MutableUncollect |
MutableUncollect.of(RelDataType rowType,
MutableRel input,
boolean withOrdinality)
Creates a MutableUncollect.
|
static MutableProject |
MutableProject.of(RelDataType rowType,
MutableRel input,
List<RexNode> projects)
Creates a MutableProject.
|
static MutableWindow |
MutableWindow.of(RelDataType rowType,
MutableRel input,
List<Window.Group> groups,
List<RexLiteral> constants)
Creates a MutableWindow.
|
static MutableCorrelate |
MutableCorrelate.of(RelDataType rowType,
MutableRel left,
MutableRel right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType)
Creates a MutableCorrelate.
|
static MutableSemiJoin |
MutableSemiJoin.of(RelDataType rowType,
MutableRel left,
MutableRel right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys)
Creates a MutableSemiJoin.
|
static MutableJoin |
MutableJoin.of(RelDataType rowType,
MutableRel left,
MutableRel right,
RexNode condition,
JoinRelType joinType,
Set<CorrelationId> variablesStopped)
Creates a MutableJoin.
|
static MutableTableModify |
MutableTableModify.of(RelDataType rowType,
MutableRel input,
RelOptTable table,
Prepare.CatalogReader catalogReader,
TableModify.Operation operation,
List<String> updateColumnList,
List<RexNode> sourceExpressionList,
boolean flattened)
Creates a MutableTableModify.
|
static MutableCollect |
MutableCollect.of(RelDataType rowType,
MutableRel input,
String fieldName)
Creates a MutableCollect.
|
static MutableTableFunctionScan |
MutableTableFunctionScan.of(RelOptCluster cluster,
RelDataType rowType,
List<MutableRel> inputs,
RexNode rexCall,
Type elementType,
Set<RelColumnMapping> columnMappings)
Creates a MutableTableFunctionScan.
|
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
SqlImplementor.Result.neededType |
| Modifier and Type | Field and Description |
|---|---|
private Map<String,RelDataType> |
SqlImplementor.AliasContext.aliases |
private Map<String,RelDataType> |
SqlImplementor.Result.aliases |
private Map<String,RelDataType> |
SqlImplementor.Builder.aliases |
| Modifier and Type | Method and Description |
|---|---|
void |
RelToSqlConverter.addSelect(List<SqlNode> selectList,
SqlNode node,
RelDataType rowType) |
void |
SqlImplementor.addSelect(List<SqlNode> selectList,
SqlNode node,
RelDataType rowType) |
static boolean |
SqlImplementor.isStar(List<RexNode> exps,
RelDataType inputRowType,
RelDataType projectRowType)
Returns whether a list of expressions projects all fields, in order,
from the input, with the same names.
|
| Modifier and Type | Method and Description |
|---|---|
SqlImplementor.Context |
SqlImplementor.aliasContext(Map<String,RelDataType> aliases,
boolean qualified) |
private void |
SqlImplementor.collectAliases(com.google.common.collect.ImmutableMap.Builder<String,RelDataType> builder,
SqlNode node,
Iterator<RelDataType> aliases) |
private void |
SqlImplementor.collectAliases(com.google.common.collect.ImmutableMap.Builder<String,RelDataType> builder,
SqlNode node,
Iterator<RelDataType> aliases) |
private static int |
SqlImplementor.computeFieldCount(Map<String,RelDataType> aliases) |
SqlImplementor.Result |
SqlImplementor.result(SqlNode node,
Collection<SqlImplementor.Clause> clauses,
RelNode rel,
Map<String,RelDataType> aliases)
Creates a result based on a single relational expression.
|
| Constructor and Description |
|---|
Result(SqlNode node,
Collection<SqlImplementor.Clause> clauses,
String neededAlias,
RelDataType neededType,
Map<String,RelDataType> aliases) |
| Constructor and Description |
|---|
AliasContext(Map<String,RelDataType> aliases,
boolean qualified)
Creates an AliasContext; use
SqlImplementor.aliasContext(Map, boolean). |
Builder(RelNode rel,
List<SqlImplementor.Clause> clauses,
SqlSelect select,
SqlImplementor.Context context,
Map<String,RelDataType> aliases) |
MatchRecognizeContext(Map<String,RelDataType> aliases) |
Result(SqlNode node,
Collection<SqlImplementor.Clause> clauses,
String neededAlias,
RelDataType neededType,
Map<String,RelDataType> aliases) |
| Modifier and Type | Field and Description |
|---|---|
(package private) RelDataType |
ReduceDecimalsRule.RexExpander.int8
Type for the internal representation of decimals.
|
(package private) RelDataType |
ReduceDecimalsRule.RexExpander.real8
Type for doubles.
|
private RelDataType |
MultiJoin.rowType |
(package private) RelDataType |
ReduceDecimalsRule.BinaryArithmeticExpander.typeA |
(package private) RelDataType |
ReduceDecimalsRule.BinaryArithmeticExpander.typeB |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
MultiJoin.deriveRowType() |
RelDataType |
ReduceDecimalsRule.CastArgAsDoubleExpander.getArgType(RexCall call,
int ordinal) |
abstract RelDataType |
ReduceDecimalsRule.CastArgAsTypeExpander.getArgType(RexCall call,
int ordinal) |
private RelDataType |
AggregateReduceFunctionsRule.getFieldType(RelNode relNode,
int i) |
| Modifier and Type | Method and Description |
|---|---|
private AggregateCall |
AggregateReduceFunctionsRule.createAggregateCallWithBinding(RelDataTypeFactory typeFactory,
SqlAggFunction aggFunction,
RelDataType operandType,
Aggregate oldAggRel,
AggregateCall oldCall,
int argOrdinal) |
private RexProgram |
CalcRelSplitter.createProgramForLevel(int level,
int levelCount,
RelDataType inputRowType,
RexNode[] allExprs,
int[] exprLevels,
int[] inputExprOrdinals,
int[] projectExprOrdinals,
int conditionExprOrdinal,
RelDataType outputRowType)
Creates a program containing the expressions for a given level.
|
protected RexNode |
ReduceDecimalsRule.RexExpander.encodeValue(RexNode value,
RelDataType decimalType)
Casts a decimal's integer representation to a decimal node.
|
protected RexNode |
ReduceDecimalsRule.RexExpander.encodeValue(RexNode value,
RelDataType decimalType,
boolean checkOverflow)
Casts a decimal's integer representation to a decimal node.
|
protected RexNode |
ReduceDecimalsRule.RexExpander.ensureType(RelDataType type,
RexNode node)
Ensures expression is interpreted as a specified type.
|
protected RexNode |
ReduceDecimalsRule.RexExpander.ensureType(RelDataType type,
RexNode node,
boolean matchNullability)
Ensures expression is interpreted as a specified type.
|
static boolean |
ProjectRemoveRule.isIdentity(List<? extends RexNode> exps,
RelDataType childRowType)
Deprecated.
|
| Constructor and Description |
|---|
MultiJoin(RelOptCluster cluster,
List<RelNode> inputs,
RexNode joinFilter,
RelDataType rowType,
boolean isFullOuterJoin,
List<RexNode> outerJoinConditions,
List<JoinRelType> joinTypes,
List<ImmutableBitSet> projFields,
com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> joinFieldRefCountsMap,
RexNode postJoinFilter)
Constructs a MultiJoin.
|
VariableReplacer(RexBuilder rexBuilder,
RelDataType leftType,
RelDataType rightType) |
| Modifier and Type | Class and Description |
|---|---|
class |
DynamicRecordType
Specific type of RelRecordType that corresponds to a dynamic table,
where columns are created as they are requested.
|
class |
DynamicRecordTypeImpl
Implementation of
RelDataType for a dynamic table. |
class |
RelCrossType
Type of the cartesian product of two or more sets of records.
|
class |
RelDataTypeFactoryImpl.JavaType
Type which is based upon a Java class.
|
class |
RelDataTypeImpl
RelDataTypeImpl is an abstract base for implementations of
RelDataType. |
class |
RelRecordType
RelRecordType represents a structured type having named fields.
|
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
RelDataTypeFieldImpl.type |
| Modifier and Type | Field and Description |
|---|---|
private static com.google.common.cache.LoadingCache<Object,RelDataType> |
RelDataTypeFactoryImpl.CACHE
Global cache.
|
com.google.common.collect.ImmutableList<RelDataType> |
RelCrossType.types |
private List<RelDataType> |
RelDataTypeFactoryImpl.Key.types |
private List<RelDataType> |
RelDataTypeFactory.Builder.types |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
RelDataTypeFactory.Builder.build()
Creates a struct type with the current contents of this builder.
|
protected RelDataType |
RelDataTypeFactoryImpl.canonize(RelDataType type)
Registers a type, or returns the existing type if it is already
registered.
|
protected RelDataType |
RelDataTypeFactoryImpl.canonize(StructKind kind,
List<String> names,
List<RelDataType> types)
Looks up a type using a temporary key, and if not present, creates
a permanent key and type.
|
private RelDataType |
RelDataTypeFactoryImpl.copyRecordType(RelRecordType type,
boolean ignoreNullable,
boolean nullable) |
private RelDataType |
RelDataTypeFactoryImpl.copySimpleType(RelDataType type,
boolean nullable) |
RelDataType |
RelDataTypeFactoryImpl.copyType(RelDataType type) |
RelDataType |
RelDataTypeFactory.copyType(RelDataType type)
Duplicates a type, making a deep copy.
|
RelDataType |
RelDataTypeFactory.createArrayType(RelDataType elementType,
long maxCardinality)
Creates an array type.
|
RelDataType |
RelDataTypeFactoryImpl.createDecimalProduct(RelDataType type1,
RelDataType type2)
Infers the return type of a decimal multiplication.
|
RelDataType |
RelDataTypeFactory.createDecimalProduct(RelDataType type1,
RelDataType type2)
Infers the return type of a decimal multiplication.
|
RelDataType |
RelDataTypeFactoryImpl.createDecimalQuotient(RelDataType type1,
RelDataType type2)
Rules:
Let p1, s1 be the precision and scale of the first operand
Let p2, s2 be the precision and scale of the second operand
Let p, s be the precision and scale of the result
Let d be the number of whole digits in the result
Then the result type is a decimal with:
d = p1 - s1 + s2
s < max(6, s1 + p2 + 1)
p = d + s
p and s are capped at their maximum values
|
RelDataType |
RelDataTypeFactory.createDecimalQuotient(RelDataType type1,
RelDataType type2)
Infers the return type of a decimal division.
|
RelDataType |
RelDataTypeFactoryImpl.createJavaType(Class clazz) |
RelDataType |
RelDataTypeFactory.createJavaType(Class clazz)
Creates a type that corresponds to a Java class.
|
RelDataType |
RelDataTypeFactoryImpl.createJoinType(RelDataType... types) |
RelDataType |
RelDataTypeFactory.createJoinType(RelDataType... types)
Creates a cartesian product type.
|
RelDataType |
RelDataTypeFactory.createMapType(RelDataType keyType,
RelDataType valueType)
Creates a map type.
|
RelDataType |
RelDataTypeFactory.createMultisetType(RelDataType elementType,
long maxCardinality)
Creates a multiset type.
|
RelDataType |
RelDataTypeFactory.createSqlIntervalType(SqlIntervalQualifier intervalQualifier)
Creates a SQL interval type.
|
RelDataType |
RelDataTypeFactory.createSqlType(SqlTypeName typeName)
Creates a SQL type with no precision or scale.
|
RelDataType |
RelDataTypeFactory.createSqlType(SqlTypeName typeName,
int precision)
Creates a SQL type with length (precision) but no scale.
|
RelDataType |
RelDataTypeFactory.createSqlType(SqlTypeName typeName,
int precision,
int scale)
Creates a SQL type with precision and scale.
|
RelDataType |
RelDataTypeFactoryImpl.createStructType(List<? extends Map.Entry<String,RelDataType>> fieldList) |
RelDataType |
RelDataTypeFactory.createStructType(List<? extends Map.Entry<String,RelDataType>> fieldList)
Creates a type that represents a structured collection of fieldList,
obtaining the field information from a list of (name, type) pairs.
|
RelDataType |
RelDataTypeFactoryImpl.createStructType(List<RelDataType> typeList,
List<String> fieldNameList) |
RelDataType |
RelDataTypeFactory.createStructType(List<RelDataType> typeList,
List<String> fieldNameList)
Creates a type that represents a structured collection of fields.
|
RelDataType |
RelDataTypeFactoryImpl.createStructType(RelDataTypeFactory.FieldInfo fieldInfo) |
RelDataType |
RelDataTypeFactory.createStructType(RelDataTypeFactory.FieldInfo fieldInfo)
Deprecated.
|
RelDataType |
RelDataTypeFactoryImpl.createStructType(StructKind kind,
List<RelDataType> typeList,
List<String> fieldNameList) |
RelDataType |
RelDataTypeFactory.createStructType(StructKind kind,
List<RelDataType> typeList,
List<String> fieldNameList)
Creates a type that represents a structured collection of fields, given
lists of the names and types of the fields.
|
RelDataType |
RelDataTypeFactory.createTypeWithCharsetAndCollation(RelDataType type,
Charset charset,
SqlCollation collation)
Creates a type that is the same as another type but with possibly
different charset or collation.
|
RelDataType |
RelDataTypeFactoryImpl.createTypeWithNullability(RelDataType type,
boolean nullable) |
RelDataType |
RelDataTypeFactory.createTypeWithNullability(RelDataType type,
boolean nullable)
Creates a type that is the same as another type but with possibly
different nullability.
|
RelDataType |
RelDataTypeFactory.createUnknownType()
Creates a SQL type that represents the "unknown" type.
|
RelDataType |
RelDataTypeSystem.deriveAvgAggType(RelDataTypeFactory typeFactory,
RelDataType argumentType)
Returns the return type of a call to the
AVG, STDDEV or
VAR aggregate functions, inferred from its argument type. |
RelDataType |
RelDataTypeSystemImpl.deriveAvgAggType(RelDataTypeFactory typeFactory,
RelDataType argumentType) |
RelDataType |
RelDataTypeSystem.deriveCovarType(RelDataTypeFactory typeFactory,
RelDataType arg0Type,
RelDataType arg1Type)
Returns the return type of a call to the
COVAR aggregate function,
inferred from its argument types. |
RelDataType |
RelDataTypeSystemImpl.deriveCovarType(RelDataTypeFactory typeFactory,
RelDataType arg0Type,
RelDataType arg1Type) |
RelDataType |
RelDataTypeSystem.deriveFractionalRankType(RelDataTypeFactory typeFactory)
Returns the return type of the
CUME_DIST and PERCENT_RANK
aggregate functions. |
RelDataType |
RelDataTypeSystemImpl.deriveFractionalRankType(RelDataTypeFactory typeFactory) |
RelDataType |
RelDataTypeSystem.deriveRankType(RelDataTypeFactory typeFactory)
Returns the return type of the
NTILE, RANK,
DENSE_RANK, and ROW_NUMBER aggregate functions. |
RelDataType |
RelDataTypeSystemImpl.deriveRankType(RelDataTypeFactory typeFactory) |
RelDataType |
RelDataTypeSystem.deriveSumType(RelDataTypeFactory typeFactory,
RelDataType argumentType)
Returns the return type of a call to the
SUM aggregate function,
inferred from its argument type. |
RelDataType |
RelDataTypeSystemImpl.deriveSumType(RelDataTypeFactory typeFactory,
RelDataType argumentType) |
RelDataType |
RelDataTypeFactoryImpl.JavaType.getComponentType() |
RelDataType |
RelDataTypeImpl.getComponentType() |
RelDataType |
RelDataType.getComponentType()
Gets the component type if this type is a collection, otherwise null.
|
RelDataType |
RelDataTypeFactory.FieldInfo.getFieldType(int index)
Deprecated.
Returns the type of a given field.
|
RelDataType |
RelDataTypeFactory.Builder.getFieldType(int index)
Returns the type of a given field.
|
RelDataType |
RelDataTypeImpl.getKeyType() |
RelDataType |
RelDataType.getKeyType()
Gets the key type if this type is a map, otherwise null.
|
RelDataType |
RelDataTypeFieldImpl.getType() |
RelDataType |
RelDataTypeField.getType()
Gets the type of this field.
|
RelDataType |
RelDataTypeFieldImpl.getValue() |
RelDataType |
RelDataTypeImpl.getValueType() |
RelDataType |
RelDataType.getValueType()
Gets the value type if this type is a map, otherwise null.
|
RelDataType |
RelDataTypeFactoryImpl.leastRestrictive(List<RelDataType> types) |
RelDataType |
RelDataTypeFactory.leastRestrictive(List<RelDataType> types)
Returns the most general of a set of types (that is, one type to which
they can all be cast), or null if conversion is not possible.
|
protected RelDataType |
RelDataTypeFactoryImpl.leastRestrictiveStructuredType(List<RelDataType> types) |
RelDataType |
RelDataTypeFieldImpl.setValue(RelDataType value) |
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory.FieldInfoBuilder |
RelDataTypeFactory.FieldInfoBuilder.add(String name,
RelDataType type)
Deprecated.
|
RelDataTypeFactory.Builder |
RelDataTypeFactory.Builder.add(String name,
RelDataType type)
Adds a field with given name and type.
|
private static void |
RelDataTypeFactoryImpl.addFields(RelDataType type,
List<RelDataTypeField> fieldList)
Adds all fields in
type to fieldList,
renumbering the fields (if necessary) to ensure that their index
matches their position in the list. |
protected RelDataType |
RelDataTypeFactoryImpl.canonize(RelDataType type)
Registers a type, or returns the existing type if it is already
registered.
|
int |
RelDataTypePrecedenceList.compareTypePrecedence(RelDataType type1,
RelDataType type2)
Compares the precedence of two types.
|
boolean |
RelDataTypePrecedenceList.containsType(RelDataType type)
Determines whether a type appears in this precedence list.
|
private RelDataType |
RelDataTypeFactoryImpl.copySimpleType(RelDataType type,
boolean nullable) |
RelDataType |
RelDataTypeFactoryImpl.copyType(RelDataType type) |
RelDataType |
RelDataTypeFactory.copyType(RelDataType type)
Duplicates a type, making a deep copy.
|
RelDataType |
RelDataTypeFactory.createArrayType(RelDataType elementType,
long maxCardinality)
Creates an array type.
|
RelDataType |
RelDataTypeFactoryImpl.createDecimalProduct(RelDataType type1,
RelDataType type2)
Infers the return type of a decimal multiplication.
|
RelDataType |
RelDataTypeFactory.createDecimalProduct(RelDataType type1,
RelDataType type2)
Infers the return type of a decimal multiplication.
|
RelDataType |
RelDataTypeFactoryImpl.createDecimalQuotient(RelDataType type1,
RelDataType type2)
Rules:
Let p1, s1 be the precision and scale of the first operand
Let p2, s2 be the precision and scale of the second operand
Let p, s be the precision and scale of the result
Let d be the number of whole digits in the result
Then the result type is a decimal with:
d = p1 - s1 + s2
s < max(6, s1 + p2 + 1)
p = d + s
p and s are capped at their maximum values
|
RelDataType |
RelDataTypeFactory.createDecimalQuotient(RelDataType type1,
RelDataType type2)
Infers the return type of a decimal division.
|
RelDataType |
RelDataTypeFactoryImpl.createJoinType(RelDataType... types) |
RelDataType |
RelDataTypeFactory.createJoinType(RelDataType... types)
Creates a cartesian product type.
|
RelDataType |
RelDataTypeFactory.createMapType(RelDataType keyType,
RelDataType valueType)
Creates a map type.
|
RelDataType |
RelDataTypeFactory.createMultisetType(RelDataType elementType,
long maxCardinality)
Creates a multiset type.
|
RelDataType |
RelDataTypeFactory.createTypeWithCharsetAndCollation(RelDataType type,
Charset charset,
SqlCollation collation)
Creates a type that is the same as another type but with possibly
different charset or collation.
|
RelDataType |
RelDataTypeFactoryImpl.createTypeWithNullability(RelDataType type,
boolean nullable) |
RelDataType |
RelDataTypeFactory.createTypeWithNullability(RelDataType type,
boolean nullable)
Creates a type that is the same as another type but with possibly
different nullability.
|
RelDataType |
RelDataTypeSystem.deriveAvgAggType(RelDataTypeFactory typeFactory,
RelDataType argumentType)
Returns the return type of a call to the
AVG, STDDEV or
VAR aggregate functions, inferred from its argument type. |
RelDataType |
RelDataTypeSystemImpl.deriveAvgAggType(RelDataTypeFactory typeFactory,
RelDataType argumentType) |
RelDataType |
RelDataTypeSystem.deriveCovarType(RelDataTypeFactory typeFactory,
RelDataType arg0Type,
RelDataType arg1Type)
Returns the return type of a call to the
COVAR aggregate function,
inferred from its argument types. |
RelDataType |
RelDataTypeSystemImpl.deriveCovarType(RelDataTypeFactory typeFactory,
RelDataType arg0Type,
RelDataType arg1Type) |
RelDataType |
RelDataTypeSystem.deriveSumType(RelDataTypeFactory typeFactory,
RelDataType argumentType)
Returns the return type of a call to the
SUM aggregate function,
inferred from its argument type. |
RelDataType |
RelDataTypeSystemImpl.deriveSumType(RelDataTypeFactory typeFactory,
RelDataType argumentType) |
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.
|
private static void |
RelDataTypeImpl.getFieldRecurse(List<RelDataTypeImpl.Slot> slots,
RelDataType type,
int depth,
String fieldName,
boolean caseSensitive) |
static boolean |
RelDataTypeFactoryImpl.isJavaType(RelDataType t) |
static RelProtoDataType |
RelDataTypeImpl.proto(RelDataType protoType)
Returns an implementation of
RelProtoDataType
that copies a given type using the given type factory. |
RelDataType |
RelDataTypeFieldImpl.setValue(RelDataType value) |
boolean |
RelDataTypeFactoryImpl.useDoubleMultiplication(RelDataType type1,
RelDataType type2) |
boolean |
RelDataTypeFactory.useDoubleMultiplication(RelDataType type1,
RelDataType type2)
Returns whether a decimal multiplication should be implemented by casting
arguments to double values.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory.FieldInfoBuilder |
RelDataTypeFactory.FieldInfoBuilder.addAll(Iterable<? extends Map.Entry<String,RelDataType>> fields)
Deprecated.
|
RelDataTypeFactory.Builder |
RelDataTypeFactory.Builder.addAll(Iterable<? extends Map.Entry<String,RelDataType>> fields)
Adds all fields in a collection.
|
protected RelDataType |
RelDataTypeFactoryImpl.canonize(StructKind kind,
List<String> names,
List<RelDataType> types)
Looks up a type using a temporary key, and if not present, creates
a permanent key and type.
|
RelDataType |
RelDataTypeFactoryImpl.createStructType(List<? extends Map.Entry<String,RelDataType>> fieldList) |
RelDataType |
RelDataTypeFactory.createStructType(List<? extends Map.Entry<String,RelDataType>> fieldList)
Creates a type that represents a structured collection of fieldList,
obtaining the field information from a list of (name, type) pairs.
|
RelDataType |
RelDataTypeFactoryImpl.createStructType(List<RelDataType> typeList,
List<String> fieldNameList) |
RelDataType |
RelDataTypeFactory.createStructType(List<RelDataType> typeList,
List<String> fieldNameList)
Creates a type that represents a structured collection of fields.
|
RelDataType |
RelDataTypeFactoryImpl.createStructType(StructKind kind,
List<RelDataType> typeList,
List<String> fieldNameList) |
RelDataType |
RelDataTypeFactory.createStructType(StructKind kind,
List<RelDataType> typeList,
List<String> fieldNameList)
Creates a type that represents a structured collection of fields, given
lists of the names and types of the fields.
|
private static List<RelDataTypeField> |
RelDataTypeFactoryImpl.getFieldList(List<RelDataType> types)
Returns a list of the fields in a list of types.
|
private static void |
RelDataTypeFactoryImpl.getTypeList(com.google.common.collect.ImmutableList<RelDataType> inTypes,
List<RelDataType> flatTypes)
Returns a list of all atomic types in a list.
|
private static void |
RelDataTypeFactoryImpl.getTypeList(com.google.common.collect.ImmutableList<RelDataType> inTypes,
List<RelDataType> flatTypes)
Returns a list of all atomic types in a list.
|
RelDataType |
RelDataTypeFactoryImpl.leastRestrictive(List<RelDataType> types) |
RelDataType |
RelDataTypeFactory.leastRestrictive(List<RelDataType> types)
Returns the most general of a set of types (that is, one type to which
they can all be cast), or null if conversion is not possible.
|
protected RelDataType |
RelDataTypeFactoryImpl.leastRestrictiveStructuredType(List<RelDataType> types) |
| Constructor and Description |
|---|
RelDataTypeFieldImpl(String name,
int index,
RelDataType type)
Creates a RelDataTypeFieldImpl.
|
| Constructor and Description |
|---|
Key(StructKind kind,
List<String> names,
List<RelDataType> types) |
RelCrossType(List<RelDataType> types,
List<RelDataTypeField> fields)
Creates a cartesian product type.
|
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
RexUtil.ForwardRefFinder.inputRowType |
private RelDataType |
RexProgramBuilder.inputRowType |
private RelDataType |
RexProgram.inputRowType |
private RelDataType |
RexProgram.outputRowType |
private RelDataType |
RexExecutorImpl.DataContextInputGetter.rowType |
private RelDataType |
RexCallBinding.RexCastCallBinding.type |
protected RelDataType |
RexVariable.type |
private RelDataType |
RexRangeRef.type |
RelDataType |
RexCall.type |
private RelDataType |
RexLiteral.type
The real type of this literal, as reported by
RexLiteral.getType(). |
| Modifier and Type | Field and Description |
|---|---|
private static com.google.common.base.Function<RelDataType,RelDataTypeFamily> |
RexUtil.FAMILY_FN |
protected List<RelDataType> |
RexChecker.inputTypeList |
private List<RelDataType> |
RexProgram.Checker.internalExprTypeList |
private static com.google.common.base.Function<RexNode,RelDataType> |
RexUtil.TYPE_FN |
private List<RelDataType> |
RexUtil.FixNullabilityShuttle.typeList |
| Modifier and Type | Method and Description |
|---|---|
private RelDataType |
RexProgramBuilder.computeOutputRowType() |
private RelDataType |
RexCopier.copy(RelDataType type) |
static RelDataType |
RexUtil.createStructType(RelDataTypeFactory typeFactory,
List<? extends RexNode> exprs,
List<String> names)
Deprecated.
|
static RelDataType |
RexUtil.createStructType(RelDataTypeFactory typeFactory,
List<? extends RexNode> exprs,
List<String> names,
SqlValidatorUtil.Suggester suggester)
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.
|
RelDataType |
RexBuilder.deriveReturnType(SqlOperator op,
List<? extends RexNode> exprs)
Derives the return type of a call to an operator.
|
RelDataType |
RexProgramBuilder.getInputRowType()
Returns the rowtype of the input to the program
|
RelDataType |
RexProgram.getInputRowType()
Returns the type of the input row to the program.
|
RelDataType |
RexCallBinding.getOperandType(int ordinal) |
RelDataType |
RexCallBinding.RexCastCallBinding.getOperandType(int ordinal) |
RelDataType |
RexProgram.getOutputRowType()
Returns the type of the output row from this program.
|
abstract RelDataType |
RexNode.getType() |
RelDataType |
RexVariable.getType() |
RelDataType |
RexRangeRef.getType() |
RelDataType |
RexCall.getType() |
RelDataType |
RexFieldAccess.getType() |
RelDataType |
RexLiteral.getType() |
private RelDataType |
RexBuilder.guessType(Object value) |
RelDataType |
RexBuilder.matchNullability(RelDataType type,
RexNode value)
Ensures that a type's nullability matches a value's nullability.
|
(package private) static RelDataType |
RexSubQuery.type(RelNode rel,
com.google.common.collect.ImmutableList<RexNode> nodes) |
| Modifier and Type | Method and Description |
|---|---|
static List<RelDataType> |
RexUtil.types(List<? extends RexNode> nodes)
Transforms a list of expressions into a list of their types.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
RexProgramBuilder.add(List<RexNode> exprList,
List<RexLocalRef> projectRefList,
RexLocalRef conditionRef,
RelDataType outputRowType,
RexShuttle shuttle,
boolean updateRefs)
Adds a set of expressions, projections and filters, applying a shuttle
first.
|
private static boolean |
RexUtil.canAssignFrom(RelDataType type1,
RelDataType type2)
Returns whether a value of
type2 can be assigned to a variable
of type1. |
(package private) boolean |
RexBuilder.canRemoveCastFromLiteral(RelDataType toType,
Comparable value,
SqlTypeName fromTypeName) |
private static Object |
RexBuilder.clean(Object o,
RelDataType type)
Converts the type of a value to comply with
RexLiteral.valueMatchesType(java.lang.Comparable, org.apache.calcite.sql.type.SqlTypeName, boolean). |
RexCall |
RexOver.clone(RelDataType type,
List<RexNode> operands) |
RexCall |
RexCall.clone(RelDataType type,
List<RexNode> operands)
Creates a new call to the same operator with different operands.
|
RexSubQuery |
RexSubQuery.clone(RelDataType type,
List<RexNode> operands) |
static boolean |
RexUtil.compatibleTypes(List<RexNode> exprs,
RelDataType type,
Litmus litmus)
Returns whether the type of an array of expressions is compatible with a
struct type.
|
private String |
RexExecutorImpl.compile(RexBuilder rexBuilder,
List<RexNode> constExps,
RexToLixTranslator.InputGetter getter,
RelDataType rowType) |
static boolean |
RexUtil.containIdentity(List<? extends RexNode> exprs,
RelDataType rowType,
Litmus litmus)
Returns whether the leading edge of a given array of expressions is
wholly
RexInputRef objects with types corresponding to the
underlying datatype. |
static boolean |
RexUtil.containNoForwardRefs(List<RexNode> exprs,
RelDataType inputRowType,
Litmus litmus)
Returns whether an array of expressions contains no forward references.
|
private RelDataType |
RexCopier.copy(RelDataType type) |
static RexProgram |
RexProgram.create(RelDataType inputRowType,
List<? extends RexNode> projectExprs,
RexNode conditionExpr,
List<String> fieldNames,
RexBuilder rexBuilder)
Creates a program which calculates projections and filters rows based
upon a condition.
|
static RexProgram |
RexProgram.create(RelDataType inputRowType,
List<? extends RexNode> projectExprs,
RexNode conditionExpr,
RelDataType outputRowType,
RexBuilder rexBuilder)
Creates a program which calculates projections and filters rows based
upon a condition.
|
static RexProgramBuilder |
RexProgramBuilder.create(RexBuilder rexBuilder,
RelDataType inputRowType,
List<RexNode> exprList,
List<? extends RexNode> projectList,
RexNode condition,
RelDataType outputRowType,
boolean normalize)
Deprecated.
|
static RexProgramBuilder |
RexProgramBuilder.create(RexBuilder rexBuilder,
RelDataType inputRowType,
List<RexNode> exprList,
List<? extends RexNode> projectList,
RexNode condition,
RelDataType outputRowType,
boolean normalize,
boolean simplify_)
Deprecated.
|
static RexProgramBuilder |
RexProgramBuilder.create(RexBuilder rexBuilder,
RelDataType inputRowType,
List<RexNode> exprList,
List<? extends RexNode> projectList,
RexNode condition,
RelDataType outputRowType,
boolean normalize,
RexSimplify simplify)
Creates a program builder with the same contents as a program.
|
static RexProgramBuilder |
RexProgramBuilder.create(RexBuilder rexBuilder,
RelDataType inputRowType,
List<RexNode> exprList,
List<RexLocalRef> projectRefList,
RexLocalRef conditionRef,
RelDataType outputRowType,
RexShuttle shuttle,
boolean updateRefs)
Creates a program builder with the same contents as a program, applying a
shuttle first.
|
static RexProgram |
RexProgram.createIdentity(RelDataType rowType)
Creates the identity program.
|
static RexProgram |
RexProgram.createIdentity(RelDataType rowType,
RelDataType outputRowType)
Creates a program that projects its input fields but with possibly
different names for the output fields.
|
RexNode |
RexBuilder.encodeIntervalOrDecimal(RexNode value,
RelDataType type,
boolean checkOverflow)
Casts a decimal's integer representation to a decimal node.
|
RexNode |
RexBuilder.ensureType(RelDataType type,
RexNode node,
boolean matchNullability)
Ensures expression is interpreted as a specified type.
|
static List<RexNode> |
RexUtil.fixUp(RexBuilder rexBuilder,
List<RexNode> nodes,
RelDataType rowType)
Deprecated.
|
static RexLiteral |
RexLiteral.fromJdbcString(RelDataType type,
SqlTypeName typeName,
String literal)
Converts a Jdbc string into a RexLiteral.
|
static List<RexNode> |
RexUtil.generateCastExpressions(RexBuilder rexBuilder,
RelDataType lhsRowType,
List<RexNode> rhsExps)
Generates a cast for a row type.
|
static List<RexNode> |
RexUtil.generateCastExpressions(RexBuilder rexBuilder,
RelDataType lhsRowType,
RelDataType rhsRowType)
Generates a cast from one row type to another
|
RexExecutable |
RexExecutorImpl.getExecutable(RexBuilder rexBuilder,
List<RexNode> exps,
RelDataType rowType)
Creates an
RexExecutable that allows to apply the
generated code during query processing (filter, projection). |
List<? extends RexNode> |
RexBuilder.identityProjects(RelDataType rowType)
Creates a list of
RexInputRef expressions,
projecting the fields of a given record type. |
static boolean |
RexUtil.isIdentity(List<? extends RexNode> exps,
RelDataType inputRowType)
Returns whether a list of expressions projects the incoming fields.
|
RexNode |
RexBuilder.makeAbstractCast(RelDataType type,
RexNode exp)
Creates a call to the CAST operator.
|
RexLiteral |
RexBuilder.makeApproxLiteral(BigDecimal bd,
RelDataType type)
Creates an approximate numeric literal (double or float).
|
RexNode |
RexBuilder.makeCall(RelDataType returnType,
SqlOperator op,
List<RexNode> exprs)
Creates a call with a list of arguments and a predetermined type.
|
RexNode |
RexBuilder.makeCast(RelDataType type,
RexNode exp)
Creates a call to the CAST operator.
|
RexNode |
RexBuilder.makeCast(RelDataType type,
RexNode exp,
boolean matchNullability)
Creates a call to the CAST operator, expanding if possible, and optionally
also preserving nullability.
|
private RexNode |
RexBuilder.makeCastBooleanToExact(RelDataType toType,
RexNode exp) |
private RexNode |
RexBuilder.makeCastExactToBoolean(RelDataType toType,
RexNode exp) |
private RexNode |
RexBuilder.makeCastIntervalToExact(RelDataType toType,
RexNode exp) |
RexNode |
RexBuilder.makeCorrel(RelDataType type,
CorrelationId id)
Creates an expression referencing a correlation variable.
|
RexDynamicParam |
RexBuilder.makeDynamicParam(RelDataType type,
int index)
Creates a reference to a dynamic parameter
|
RexLiteral |
RexBuilder.makeExactLiteral(BigDecimal bd,
RelDataType type)
Creates a numeric literal.
|
RexInputRef |
RexBuilder.makeInputRef(RelDataType type,
int i)
Creates a reference to a given field of the input record.
|
protected RexLiteral |
RexBuilder.makeLiteral(Comparable o,
RelDataType type,
SqlTypeName typeName)
Internal method to create a call to a literal.
|
RexNode |
RexBuilder.makeLiteral(Object value,
RelDataType type,
boolean allowCast)
Creates a literal of a given type.
|
RexNode |
RexBuilder.makeNewInvocation(RelDataType type,
List<RexNode> exprs)
Creates an invocation of the NEW operator.
|
RexLiteral |
RexBuilder.makeNullLiteral(RelDataType type)
Creates a literal whose value is NULL, with a particular type.
|
RexNode |
RexBuilder.makeOver(RelDataType type,
SqlAggFunction operator,
List<RexNode> exprs,
List<RexNode> partitionKeys,
com.google.common.collect.ImmutableList<RexFieldCollation> orderKeys,
RexWindowBound lowerBound,
RexWindowBound upperBound,
boolean physical,
boolean allowPartial,
boolean nullWhenCountZero,
boolean distinct)
Creates a call to a windowed agg.
|
RexPatternFieldRef |
RexBuilder.makePatternFieldRef(String alpha,
RelDataType type,
int i)
Creates a reference to a given field of the pattern.
|
RexRangeRef |
RexBuilder.makeRangeReference(RelDataType type,
int offset,
boolean nullable)
Creates a reference to all the fields in the row.
|
RexNode |
RexBuilder.makeReinterpretCast(RelDataType type,
RexNode exp,
RexNode checkOverflow)
Makes a reinterpret cast.
|
RexNode |
RexBuilder.makeZeroLiteral(RelDataType type)
Creates a literal of the default value for the given type.
|
RelDataType |
RexBuilder.matchNullability(RelDataType type,
RexNode value)
Ensures that a type's nullability matches a value's nullability.
|
static RexInputRef |
RexInputRef.of(int index,
RelDataType rowType)
Creates a reference to a given field in a row type.
|
static RexTableInputRef |
RexTableInputRef.of(RexTableInputRef.RelTableRef tableRef,
int index,
RelDataType type) |
static RexPatternFieldRef |
RexPatternFieldRef.of(String alpha,
int index,
RelDataType type) |
private static Comparable |
RexBuilder.zeroValue(RelDataType type) |
| Modifier and Type | Method and Description |
|---|---|
RexNode |
RexBuilder.addAggCall(AggregateCall aggCall,
int groupCount,
boolean indicator,
List<AggregateCall> aggCalls,
Map<AggregateCall,RexNode> aggCallMapping,
List<RelDataType> aggArgTypes)
Creates a reference to an aggregate call, checking for repeated calls.
|
static List<RelDataTypeFamily> |
RexUtil.families(List<RelDataType> types) |
static List<RexNode> |
RexUtil.fixUp(RexBuilder rexBuilder,
List<RexNode> nodes,
List<RelDataType> fieldTypes)
Fixes up the type of all
RexInputRefs in an
expression to match differences in nullability. |
private static List<Integer> |
RexBuilder.nullableArgs(List<Integer> list0,
List<RelDataType> types) |
| Constructor and Description |
|---|
Checker(RelDataType inputRowType,
List<RelDataType> internalExprTypeList,
RelNode.Context context,
Litmus litmus)
Creates a Checker.
|
DataContextInputGetter(RelDataType rowType,
RelDataTypeFactory typeFactory) |
ForwardRefFinder(RelDataType inputRowType) |
RexCall(RelDataType type,
SqlOperator op,
List<? extends RexNode> operands) |
RexCastCallBinding(RelDataTypeFactory typeFactory,
SqlOperator sqlOperator,
List<? extends RexNode> operands,
RelDataType type,
List<RelCollation> inputCollations) |
RexChecker(RelDataType inputRowType,
RelNode.Context context,
Litmus litmus)
Creates a RexChecker with a given input row type.
|
RexCorrelVariable(CorrelationId id,
RelDataType type) |
RexDynamicParam(RelDataType type,
int index)
Creates a dynamic parameter.
|
RexInputRef(int index,
RelDataType type)
Creates an input variable.
|
RexLiteral(Comparable value,
RelDataType type,
SqlTypeName typeName)
Creates a
RexLiteral. |
RexLocalRef(int index,
RelDataType type)
Creates a local variable.
|
RexOver(RelDataType type,
SqlAggFunction op,
List<RexNode> operands,
RexWindow window,
boolean distinct)
Creates a RexOver.
|
RexPatternFieldRef(String alpha,
int index,
RelDataType type) |
RexProgram(RelDataType inputRowType,
List<? extends RexNode> exprs,
List<RexLocalRef> projects,
RexLocalRef condition,
RelDataType outputRowType)
Creates a program.
|
RexProgramBuilder(RelDataType inputRowType,
RexBuilder rexBuilder)
Creates a program-builder that will not simplify.
|
RexProgramBuilder(RelDataType inputRowType,
RexBuilder rexBuilder,
RexSimplify simplify)
Creates a program-builder.
|
RexProgramBuilder(RexBuilder rexBuilder,
RelDataType inputRowType,
List<RexNode> exprList,
Iterable<? extends RexNode> projectList,
RexNode condition,
RelDataType outputRowType,
boolean normalize,
RexSimplify simplify)
Creates a program builder with the same contents as a program.
|
RexRangeRef(RelDataType rangeType,
int offset)
Creates a range reference.
|
RexSlot(String name,
int index,
RelDataType type)
Creates a slot.
|
RexSubQuery(RelDataType type,
SqlOperator op,
com.google.common.collect.ImmutableList<RexNode> operands,
RelNode rel) |
RexTableInputRef(RexTableInputRef.RelTableRef tableRef,
int index,
RelDataType type) |
RexVariable(String name,
RelDataType type) |
| Constructor and Description |
|---|
Checker(RelDataType inputRowType,
List<RelDataType> internalExprTypeList,
RelNode.Context context,
Litmus litmus)
Creates a Checker.
|
FixNullabilityShuttle(RexBuilder rexBuilder,
List<RelDataType> typeList) |
RexChecker(List<RelDataType> inputTypeList,
RelNode.Context context,
Litmus litmus)
Creates a RexChecker with a given set of input fields.
|
| 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 |
Member.getType()
Returns the type of this function's result.
|
RelDataType |
FunctionParameter.getType(RelDataTypeFactory typeFactory)
Returns the type of this parameter.
|
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
Schemas.canConvert(RelDataType fromType,
RelDataType toType) |
T |
TableFactory.create(SchemaPlus schema,
String name,
Map<String,Object> operand,
RelDataType rowType)
Creates a Table.
|
RexNode |
ModifiableView.getConstraint(RexBuilder rexBuilder,
RelDataType tableRowType)
Returns a constraint that each candidate row must satisfy.
|
List<Pair<RelDataTypeField,List<String>>> |
CustomColumnResolvingTable.resolveColumn(RelDataType rowType,
RelDataTypeFactory typeFactory,
List<String> names)
Resolve a column based on the name components.
|
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
Schemas.matches(RelDataTypeFactory typeFactory,
Function member,
List<RelDataType> argumentTypes) |
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 |
ScalarFunctionImpl.getReturnType(RelDataTypeFactory typeFactory,
SqlOperatorBinding opBinding) |
RelDataType |
StarTable.getRowType(RelDataTypeFactory typeFactory) |
RelDataType |
ViewTable.getRowType(RelDataTypeFactory typeFactory) |
RelDataType |
TableFunctionImpl.getRowType(RelDataTypeFactory typeFactory,
List<Object> arguments) |
| Modifier and Type | Method and Description |
|---|---|
private RelRoot |
ViewTable.expandView(RelOptTable.ToRelContext preparingStmt,
RelDataType rowType,
String queryString) |
RexNode |
ModifiableViewTable.getConstraint(RexBuilder rexBuilder,
RelDataType tableRowType) |
RexNode |
ModifiableViewTable.ModifiableViewTableInitializerExpressionFactory.newAttributeInitializer(RelDataType type,
SqlFunction constructor,
int iAttribute,
List<RexNode> constructorArgs,
InitializerContext context) |
| Modifier and Type | Field and Description |
|---|---|
private List<RelDataType> |
SqlFunction.paramTypes |
private List<RelDataType> |
ExplicitOperatorBinding.types |
| Modifier and Type | Method and Description |
|---|---|
protected RelDataType |
SqlPrefixOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type) |
protected RelDataType |
SqlOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type)
Validates and determines coercibility and resulting collation name of
binary operator if needed.
|
protected RelDataType |
SqlBinaryOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type) |
protected RelDataType |
SqlPostfixOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type) |
private static RelDataType |
SqlUtil.bestMatch(List<SqlFunction> sqlFunctions,
int i,
RelDataTypePrecedenceList precList) |
static RelDataType |
SqlUtil.createNlsStringType(RelDataTypeFactory typeFactory,
NlsString str)
Creates the type of an
NlsString. |
RelDataType |
SqlDateLiteral.createSqlType(RelDataTypeFactory typeFactory) |
RelDataType |
SqlNumericLiteral.createSqlType(RelDataTypeFactory typeFactory) |
RelDataType |
SqlLiteral.createSqlType(RelDataTypeFactory typeFactory) |
RelDataType |
SqlAbstractDateTimeLiteral.createSqlType(RelDataTypeFactory typeFactory) |
RelDataType |
SqlDataTypeSpec.deriveType(RelDataTypeFactory typeFactory)
Does not throw an error if the type is not built-in.
|
RelDataType |
SqlDataTypeSpec.deriveType(RelDataTypeFactory typeFactory,
boolean nullable)
Converts this type specification to a
RelDataType. |
RelDataType |
SqlDataTypeSpec.deriveType(SqlValidator validator)
Throws an error if the type is not built-in.
|
RelDataType |
SqlOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Derives the type of a call to this operator.
|
RelDataType |
SqlBinaryOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlInternalOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlFilterOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlOverOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlFunction.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlAsOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlJdbcFunctionCall.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
private RelDataType |
SqlFunction.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call,
boolean convertRowArgToColumnList) |
RelDataType |
SqlCallBinding.getCursorOperand(int ordinal) |
RelDataType |
SqlOperatorBinding.getCursorOperand(int ordinal)
Returns the rowtype of the
ordinalth operand, which is a
cursor. |
RelDataType |
SqlCallBinding.getOperandType(int ordinal) |
abstract RelDataType |
SqlOperatorBinding.getOperandType(int ordinal)
Gets the type of a bound operand.
|
RelDataType |
ExplicitOperatorBinding.getOperandType(int ordinal) |
RelDataType |
SqlAggFunction.getReturnType(RelDataTypeFactory typeFactory)
Deprecated.
|
RelDataType |
SqlOperator.inferReturnType(RelDataTypeFactory typeFactory,
List<RelDataType> operandTypes)
Infers the type of a call to this operator with a given set of operand
types.
|
RelDataType |
SqlOperator.inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of an invocation of this operator; only called
after the number and types of operands have already been validated.
|
RelDataType |
SqlUnnestOperator.inferReturnType(SqlOperatorBinding opBinding) |
RelDataType |
SqlJdbcFunctionCall.inferReturnType(SqlOperatorBinding opBinding) |
RelDataType |
SqlUnresolvedFunction.inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of an invocation of this operator; only called
after the number and types of operands have already been validated.
|
RelDataType |
SqlOperator.validateOperands(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Validates the operands of a call, inferring the return type in the
process.
|
| Modifier and Type | Method and Description |
|---|---|
List<RelDataType> |
SqlOperatorBinding.collectOperandTypes()
Collects the types of the bound operands into a list.
|
protected List<RelDataType> |
SqlOperator.constructArgTypeList(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call,
List<SqlNode> args,
boolean convertRowArgToColumnList) |
List<RelDataType> |
SqlAggFunction.getParameterTypes(RelDataTypeFactory typeFactory)
Deprecated.
|
List<RelDataType> |
SqlFunction.getParamTypes() |
| Modifier and Type | Method and Description |
|---|---|
protected RelDataType |
SqlPrefixOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type) |
protected RelDataType |
SqlOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type)
Validates and determines coercibility and resulting collation name of
binary operator if needed.
|
protected RelDataType |
SqlBinaryOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type) |
protected RelDataType |
SqlPostfixOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type) |
SqlNode |
SqlDialect.getCastSpec(RelDataType type) |
RexNode |
SqlSplittableAggFunction.singleton(RexBuilder rexBuilder,
RelDataType inputRowType,
AggregateCall aggregateCall)
Generates an expression for the value of the aggregate function when
applied to a single row.
|
RexNode |
SqlSplittableAggFunction.CountSplitter.singleton(RexBuilder rexBuilder,
RelDataType inputRowType,
AggregateCall aggregateCall)
Generates an expression for the value of the aggregate function when
applied to a single row.
|
RexNode |
SqlSplittableAggFunction.SelfSplitter.singleton(RexBuilder rexBuilder,
RelDataType inputRowType,
AggregateCall aggregateCall) |
RexNode |
SqlSplittableAggFunction.AbstractSumSplitter.singleton(RexBuilder rexBuilder,
RelDataType inputRowType,
AggregateCall aggregateCall) |
boolean |
SqlDialect.supportsFunction(SqlOperator operator,
RelDataType type,
List<RelDataType> paramTypes)
Returns whether this dialect supports a given function or operator.
|
AggregateCall |
SqlSplittableAggFunction.topSplit(RexBuilder rexBuilder,
SqlSplittableAggFunction.Registry<RexNode> extra,
int offset,
RelDataType inputRowType,
AggregateCall aggregateCall,
int leftSubTotal,
int rightSubTotal)
Generates an aggregate call to merge sub-totals.
|
AggregateCall |
SqlSplittableAggFunction.CountSplitter.topSplit(RexBuilder rexBuilder,
SqlSplittableAggFunction.Registry<RexNode> extra,
int offset,
RelDataType inputRowType,
AggregateCall aggregateCall,
int leftSubTotal,
int rightSubTotal) |
AggregateCall |
SqlSplittableAggFunction.SelfSplitter.topSplit(RexBuilder rexBuilder,
SqlSplittableAggFunction.Registry<RexNode> extra,
int offset,
RelDataType inputRowType,
AggregateCall aggregateCall,
int leftSubTotal,
int rightSubTotal) |
AggregateCall |
SqlSplittableAggFunction.AbstractSumSplitter.topSplit(RexBuilder rexBuilder,
SqlSplittableAggFunction.Registry<RexNode> extra,
int offset,
RelDataType inputRowType,
AggregateCall aggregateCall,
int leftSubTotal,
int rightSubTotal) |
| Modifier and Type | Method and Description |
|---|---|
private static Iterator<SqlOperator> |
SqlUtil.filterRoutinesByParameterCount(Iterator<SqlOperator> routines,
List<RelDataType> argTypes) |
private static Iterator<SqlOperator> |
SqlUtil.filterRoutinesByParameterType(SqlSyntax syntax,
Iterator<SqlOperator> routines,
List<RelDataType> argTypes,
List<String> argNames) |
private static Iterator<SqlOperator> |
SqlUtil.filterRoutinesByTypePrecedence(SqlSyntax sqlSyntax,
Iterator<SqlOperator> routines,
List<RelDataType> argTypes) |
RelDataType |
SqlOperator.inferReturnType(RelDataTypeFactory typeFactory,
List<RelDataType> operandTypes)
Infers the type of a call to this operator with a given set of operand
types.
|
static SqlOperator |
SqlUtil.lookupRoutine(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
List<String> argNames,
SqlFunctionCategory category,
SqlSyntax syntax,
SqlKind sqlKind)
Looks up a (possibly overloaded) routine based on name and argument
types.
|
static Iterator<SqlOperator> |
SqlUtil.lookupSubjectRoutines(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
List<String> argNames,
SqlSyntax sqlSyntax,
SqlKind sqlKind,
SqlFunctionCategory category)
Looks up all subject routines matching the given name and argument types.
|
static boolean |
SqlUtil.matchRoutinesByParameterCount(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
SqlFunctionCategory category)
Determines whether there is a routine matching the given name and number
of arguments.
|
boolean |
SqlDialect.supportsFunction(SqlOperator operator,
RelDataType type,
List<RelDataType> paramTypes)
Returns whether this dialect supports a given function or operator.
|
| Constructor and Description |
|---|
ExplicitOperatorBinding(RelDataTypeFactory typeFactory,
SqlOperator operator,
List<RelDataType> types) |
ExplicitOperatorBinding(SqlOperatorBinding delegate,
List<RelDataType> types) |
ExplicitOperatorBinding(SqlOperatorBinding delegate,
RelDataTypeFactory typeFactory,
SqlOperator operator,
List<RelDataType> types) |
SqlFunction(SqlIdentifier sqlIdentifier,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
List<RelDataType> paramTypes,
SqlFunctionCategory funcType)
Creates a placeholder SqlFunction for an invocation of a function with a
possibly qualified name.
|
SqlFunction(String name,
SqlIdentifier sqlIdentifier,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
List<RelDataType> paramTypes,
SqlFunctionCategory category)
Internal constructor.
|
SqlUnresolvedFunction(SqlIdentifier sqlIdentifier,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
List<RelDataType> paramTypes,
SqlFunctionCategory funcType)
Creates a placeholder SqlUnresolvedFunction for an invocation of a function
with a possibly qualified name.
|
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
SqlAdvisorValidator.emptyStructType |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
SqlAdvisorValidator.deriveType(SqlValidatorScope scope,
SqlNode operand)
Calls the parent class method and mask Farrago exception thrown.
|
RelDataType |
SqlAdvisorGetHintsFunction.getRowType(RelDataTypeFactory typeFactory,
List<Object> arguments) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
SqlAdvisorValidator.validateFrom(SqlNode node,
RelDataType targetRowType,
SqlValidatorScope scope) |
protected void |
SqlAdvisorValidator.validateNamespace(SqlValidatorNamespace namespace,
RelDataType targetRowType) |
| Modifier and Type | Method and Description |
|---|---|
SqlNode |
MysqlSqlDialect.getCastSpec(RelDataType type) |
boolean |
JethroDataSqlDialect.supportsFunction(SqlOperator operator,
RelDataType type,
List<RelDataType> paramTypes) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
JethroDataSqlDialect.JethroSupportedFunction.argumentsMatch(List<RelDataType> paramTypes) |
boolean |
JethroDataSqlDialect.supportsFunction(SqlOperator operator,
RelDataType type,
List<RelDataType> paramTypes) |
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
SqlSumAggFunction.type
Deprecated.
|
private RelDataType |
SqlHistogramAggFunction.type
Deprecated.
|
private RelDataType |
SqlSingleValueAggFunction.type
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
List<RelDataType> |
SqlMinMaxAggFunction.argTypes
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
private SqlSingleOperandTypeChecker |
SqlDotOperator.getChecker(RelDataType operandType) |
private SqlSingleOperandTypeChecker |
SqlItemOperator.getChecker(RelDataType operandType) |
| Modifier and Type | Method and Description |
|---|---|
protected RelDataType |
SqlMultisetValueConstructor.getComponentType(RelDataTypeFactory typeFactory,
List<RelDataType> argTypes) |
private RelDataType |
SqlMultisetQueryConstructor.getComponentType(RelDataTypeFactory typeFactory,
List<RelDataType> argTypes) |
private Pair<RelDataType,RelDataType> |
SqlMapValueConstructor.getComponentTypes(RelDataTypeFactory typeFactory,
List<RelDataType> argTypes) |
private RelDataType |
SqlCaseOperator.inferTypeFromOperands(RelDataTypeFactory typeFactory,
List<RelDataType> argTypes) |
| Constructor and Description |
|---|
SqlAvgAggFunction(RelDataType type,
SqlAvgAggFunction.Subtype subtype)
Deprecated.
|
SqlCovarAggFunction(RelDataType type,
SqlCovarAggFunction.Subtype subtype)
Deprecated.
|
SqlHistogramAggFunction(RelDataType type) |
SqlSingleValueAggFunction(RelDataType type) |
SqlSumAggFunction(RelDataType type) |
| Constructor and Description |
|---|
SqlMinMaxAggFunction(List<RelDataType> argTypes,
boolean isMin,
int minMaxKind)
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSqlType
Abstract base class for SQL implementations of
RelDataType. |
class |
ArraySqlType
SQL array type.
|
class |
BasicSqlType
BasicSqlType represents a standard atomic SQL type (excluding interval
types).
|
class |
IntervalSqlType
IntervalSqlType represents a standard SQL datetime interval type.
|
class |
MapSqlType
SQL map type.
|
class |
MultisetSqlType
MultisetSqlType represents a standard SQL2003 multiset type.
|
class |
ObjectSqlType
ObjectSqlType represents an SQL structured user-defined type.
|
private static class |
SqlTypeFactoryImpl.UnknownSqlType
The unknown type.
|
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
MultisetSqlType.elementType |
private RelDataType |
ArraySqlType.elementType |
private RelDataType |
MapSqlType.keyType |
private RelDataType |
MapSqlType.valueType |
| Modifier and Type | Field and Description |
|---|---|
private List<RelDataType> |
AssignableOperandTypeChecker.paramTypes |
private com.google.common.collect.ImmutableList<RelDataType> |
ExplicitOperandTypeInference.paramTypes |
| 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.
|
protected RelDataType |
SqlTypeFactoryImpl.canonize(RelDataType type) |
private RelDataType |
SqlTypeFactoryImpl.copyArrayType(RelDataType type,
boolean nullable) |
private RelDataType |
SqlTypeFactoryImpl.copyIntervalType(RelDataType type,
boolean nullable) |
private RelDataType |
SqlTypeFactoryImpl.copyMapType(RelDataType type,
boolean nullable) |
private RelDataType |
SqlTypeFactoryImpl.copyMultisetType(RelDataType type,
boolean nullable) |
private RelDataType |
SqlTypeFactoryImpl.copyObjectType(RelDataType type,
boolean nullable) |
static RelDataType |
SqlTypeUtil.createArrayType(RelDataTypeFactory typeFactory,
RelDataType type,
boolean nullable) |
RelDataType |
SqlTypeFactoryImpl.createArrayType(RelDataType elementType,
long maxCardinality) |
private RelDataType |
SqlTypeFactoryImpl.createDoublePrecisionType() |
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) |
RelDataType |
SqlTypeFactoryImpl.createMapType(RelDataType keyType,
RelDataType valueType) |
static RelDataType |
SqlTypeUtil.createMultisetType(RelDataTypeFactory typeFactory,
RelDataType type,
boolean nullable) |
RelDataType |
SqlTypeFactoryImpl.createMultisetType(RelDataType type,
long maxCardinality) |
RelDataType |
SqlTypeFactoryImpl.createSqlIntervalType(SqlIntervalQualifier intervalQualifier) |
RelDataType |
SqlTypeFactoryImpl.createSqlType(SqlTypeName typeName) |
RelDataType |
SqlTypeFactoryImpl.createSqlType(SqlTypeName typeName,
int precision) |
RelDataType |
SqlTypeFactoryImpl.createSqlType(SqlTypeName typeName,
int precision,
int scale) |
RelDataType |
SqlTypeFactoryImpl.createTypeWithCharsetAndCollation(RelDataType type,
Charset charset,
SqlCollation collation) |
RelDataType |
SqlTypeFactoryImpl.createTypeWithNullability(RelDataType type,
boolean nullable) |
RelDataType |
SqlTypeFactoryImpl.createUnknownType() |
static RelDataType |
SqlTypeUtil.flattenRecordType(RelDataTypeFactory typeFactory,
RelDataType recordType,
int[] flatteningMap)
Flattens a record type by recursively expanding any fields which are
themselves record types.
|
RelDataType |
MultisetSqlType.getComponentType() |
RelDataType |
ArraySqlType.getComponentType() |
RelDataType |
MapSqlType.getKeyType() |
RelDataType |
MapSqlType.getValueType() |
RelDataType |
CursorReturnTypeInference.inferReturnType(SqlOperatorBinding opBinding) |
RelDataType |
TableFunctionReturnTypeInference.inferReturnType(SqlOperatorBinding opBinding) |
RelDataType |
SqlReturnTypeInference.inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of a call to an
SqlOperator. |
RelDataType |
SqlTypeTransformCascade.inferReturnType(SqlOperatorBinding opBinding) |
RelDataType |
ExplicitReturnTypeInference.inferReturnType(SqlOperatorBinding opBinding) |
RelDataType |
SqlReturnTypeInferenceChain.inferReturnType(SqlOperatorBinding opBinding) |
RelDataType |
MatchReturnTypeInference.inferReturnType(SqlOperatorBinding opBinding) |
RelDataType |
OrdinalReturnTypeInference.inferReturnType(SqlOperatorBinding opBinding) |
RelDataType |
SqlTypeFactoryImpl.leastRestrictive(List<RelDataType> types) |
private RelDataType |
SqlTypeFactoryImpl.leastRestrictiveByCast(List<RelDataType> types) |
private RelDataType |
SqlTypeFactoryImpl.leastRestrictiveSqlType(List<RelDataType> 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.makeNullableIfOperandsAre(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call,
RelDataType type)
Recreates a given RelDataType with nullability iff any of the operands
of a call 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).
|
RelDataType |
SqlTypeTransform.transformType(SqlOperatorBinding opBinding,
RelDataType typeToTransform)
Transforms a type.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RelDataType> |
SqlTypeUtil.deriveAndCollectTypes(SqlValidator validator,
SqlValidatorScope scope,
List<SqlNode> operands)
Iterates over all operands, derives their types, and collects them into
a list.
|
static List<RelDataType> |
SqlTypeUtil.projectTypes(RelDataType rowType,
List<? extends Number> requiredFields)
Selects data types of the specified fields from an input row type.
|
| 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 boolean |
SqlTypeUtil.areCharacterSetsMismatched(RelDataType t1,
RelDataType t2)
Determines whether two types both have different character sets.
|
static boolean |
SqlTypeUtil.canAssignFrom(RelDataType toType,
RelDataType fromType)
Tests whether a value can be assigned to a site.
|
static boolean |
SqlTypeUtil.canCastFrom(RelDataType toType,
RelDataType fromType,
boolean coerce)
Compares two types and returns true if fromType can be cast to toType.
|
protected RelDataType |
SqlTypeFactoryImpl.canonize(RelDataType type) |
private boolean |
ComparableOperandTypeChecker.checkType(SqlCallBinding callBinding,
boolean throwOnFailure,
RelDataType type) |
int |
SqlTypeExplicitPrecedenceList.compareTypePrecedence(RelDataType type1,
RelDataType type2) |
boolean |
SqlTypeFamily.contains(RelDataType type) |
static boolean |
SqlTypeUtil.containsNullable(RelDataType type)
Determines whether a type or any of its fields (if a structured type) are
nullable.
|
boolean |
SqlTypeExplicitPrecedenceList.containsType(RelDataType type) |
static SqlDataTypeSpec |
SqlTypeUtil.convertTypeToSpec(RelDataType type)
Converts an instance of RelDataType to an instance of SqlDataTypeSpec.
|
private RelDataType |
SqlTypeFactoryImpl.copyArrayType(RelDataType type,
boolean nullable) |
private RelDataType |
SqlTypeFactoryImpl.copyIntervalType(RelDataType type,
boolean nullable) |
private RelDataType |
SqlTypeFactoryImpl.copyMapType(RelDataType type,
boolean nullable) |
private RelDataType |
SqlTypeFactoryImpl.copyMultisetType(RelDataType type,
boolean nullable) |
private RelDataType |
SqlTypeFactoryImpl.copyObjectType(RelDataType type,
boolean nullable) |
static RelDataType |
SqlTypeUtil.createArrayType(RelDataTypeFactory typeFactory,
RelDataType type,
boolean nullable) |
RelDataType |
SqlTypeFactoryImpl.createArrayType(RelDataType elementType,
long maxCardinality) |
static RelDataType |
SqlTypeUtil.createMapType(RelDataTypeFactory typeFactory,
RelDataType keyType,
RelDataType valueType,
boolean nullable) |
RelDataType |
SqlTypeFactoryImpl.createMapType(RelDataType keyType,
RelDataType valueType) |
static RelDataType |
SqlTypeUtil.createMultisetType(RelDataTypeFactory typeFactory,
RelDataType type,
boolean nullable) |
RelDataType |
SqlTypeFactoryImpl.createMultisetType(RelDataType type,
long maxCardinality) |
RelDataType |
SqlTypeFactoryImpl.createTypeWithCharsetAndCollation(RelDataType type,
Charset charset,
SqlCollation collation) |
RelDataType |
SqlTypeFactoryImpl.createTypeWithNullability(RelDataType type,
boolean nullable) |
static boolean |
SqlTypeUtil.equalSansNullability(RelDataTypeFactory factory,
RelDataType type1,
RelDataType type2)
Returns whether two types are equal, ignoring nullability.
|
static ExplicitReturnTypeInference |
ReturnTypes.explicit(RelDataType type)
Creates an inference rule which returns a copy of a given data type.
|
static int |
SqlTypeUtil.findField(RelDataType type,
String fieldName)
Returns the ordinal of a given field in a record type, or -1 if the field
is not found.
|
private static boolean |
SqlTypeUtil.flattenFields(RelDataTypeFactory typeFactory,
RelDataType type,
List<RelDataTypeField> list,
int[] flatteningMap) |
static RelDataType |
SqlTypeUtil.flattenRecordType(RelDataTypeFactory typeFactory,
RelDataType recordType,
int[] flatteningMap)
Flattens a record type by recursively expanding any fields which are
themselves record types.
|
(package private) static RelDataTypePrecedenceList |
SqlTypeExplicitPrecedenceList.getListForType(RelDataType type) |
static int |
SqlTypeUtil.getMaxByteSize(RelDataType type)
Computes the maximum number of bytes required to represent a value of a
type having user-defined precision.
|
static long |
SqlTypeUtil.getMaxValue(RelDataType type)
Determines the maximum unscaled value of a numeric type
|
static long |
SqlTypeUtil.getMinValue(RelDataType type)
Determines the minimum unscaled value of a numeric type
|
static String |
SqlTypeUtil.getNumericJavaClassName(RelDataType type)
Deprecated.
|
static String |
SqlTypeUtil.getPrimitiveWrapperJavaClassName(RelDataType type)
Deprecated.
|
static boolean |
SqlTypeUtil.hasScale(RelDataType type)
Returns whether a type's scale is set.
|
static boolean |
SqlTypeUtil.inBooleanFamily(RelDataType type) |
static boolean |
SqlTypeUtil.inCharFamily(RelDataType type) |
static boolean |
SqlTypeUtil.inCharOrBinaryFamilies(RelDataType type) |
void |
SqlOperandTypeInference.inferOperandTypes(SqlCallBinding callBinding,
RelDataType returnType,
RelDataType[] operandTypes)
Infers any unknown operand types.
|
void |
SqlOperandTypeInference.inferOperandTypes(SqlCallBinding callBinding,
RelDataType returnType,
RelDataType[] operandTypes)
Infers any unknown operand types.
|
void |
ExplicitOperandTypeInference.inferOperandTypes(SqlCallBinding callBinding,
RelDataType returnType,
RelDataType[] operandTypes) |
void |
ExplicitOperandTypeInference.inferOperandTypes(SqlCallBinding callBinding,
RelDataType returnType,
RelDataType[] operandTypes) |
static boolean |
SqlTypeUtil.inSameFamily(RelDataType t1,
RelDataType t2) |
static boolean |
SqlTypeUtil.inSameFamilyOrNull(RelDataType t1,
RelDataType t2) |
private static boolean |
SqlTypeUtil.isAny(RelDataType t) |
static boolean |
SqlTypeUtil.isApproximateNumeric(RelDataType type) |
static boolean |
SqlTypeUtil.isArray(RelDataType type) |
static boolean |
SqlTypeUtil.isBigint(RelDataType type) |
static boolean |
SqlTypeUtil.isBoundedVariableWidth(RelDataType type) |
static boolean |
SqlTypeUtil.isComparable(RelDataType type1,
RelDataType type2)
Returns whether two types are comparable.
|
static boolean |
SqlTypeUtil.isDatetime(RelDataType type) |
static boolean |
SqlTypeUtil.isDecimal(RelDataType type) |
static boolean |
SqlTypeUtil.isExactNumeric(RelDataType type) |
static boolean |
SqlTypeUtil.isFlat(RelDataType type)
Returns whether a type is flat.
|
static boolean |
SqlTypeUtil.isInterval(RelDataType type) |
static boolean |
SqlTypeUtil.isIntType(RelDataType type) |
static boolean |
SqlTypeUtil.isJavaPrimitive(RelDataType type)
Deprecated.
|
static boolean |
SqlTypeUtil.isLob(RelDataType type) |
static boolean |
SqlTypeUtil.isNumeric(RelDataType type) |
static boolean |
SqlTypeUtil.isOfSameTypeName(Collection<SqlTypeName> typeNames,
RelDataType type)
Returns true if any element in
typeNames matches
type.getSqlTypeName(). |
static boolean |
SqlTypeUtil.isOfSameTypeName(SqlTypeName typeName,
RelDataType type)
Returns typeName.equals(type.getSqlTypeName()).
|
static boolean |
SqlTypeUtil.isUnicode(RelDataType type)
Checks whether a type represents Unicode character data.
|
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.makeNullableIfOperandsAre(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call,
RelDataType type)
Recreates a given RelDataType with nullability iff any of the operands
of a call are nullable.
|
static long |
SqlTypeUtil.maxValue(RelDataType type)
Returns the maximum value of an integral type, as a long value
|
static boolean |
SqlTypeUtil.needsNullIndicator(RelDataType recordType) |
static List<RelDataType> |
SqlTypeUtil.projectTypes(RelDataType rowType,
List<? extends Number> requiredFields)
Selects data types of the specified fields from an input row type.
|
static RelDataType |
SqlTypeUtil.promoteToRowType(RelDataTypeFactory typeFactory,
RelDataType type,
String fieldName)
Promotes a type to a row type (does nothing if it already is one).
|
static boolean |
SqlTypeUtil.sameNamedType(RelDataType t1,
RelDataType t2)
Tests whether two types have the same name and structure, possibly with
differing modifiers.
|
RelDataType |
SqlTypeTransform.transformType(SqlOperatorBinding opBinding,
RelDataType typeToTransform)
Transforms a type.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
TableFunctionReturnTypeInference.addOutputColumn(List<String> expandedFieldNames,
List<RelDataType> expandedOutputTypes,
int iInputColumn,
int iCursor,
SqlOperatorBinding opBinding,
RelDataTypeField cursorField) |
static boolean |
SqlTypeUtil.allNullable(List<RelDataType> types)
Returns whether all of array of types are nullable.
|
static boolean |
SqlTypeUtil.containsNullable(List<RelDataType> types)
Returns whether one or more of an array of types is nullable.
|
static SqlOperandTypeInference |
InferTypes.explicit(List<RelDataType> types)
Returns an
SqlOperandTypeInference that returns a given list of
types. |
static boolean |
SqlTypeUtil.isCharTypeComparable(List<RelDataType> argTypes)
Checks whether two types or more are char comparable.
|
RelDataType |
SqlTypeFactoryImpl.leastRestrictive(List<RelDataType> types) |
private RelDataType |
SqlTypeFactoryImpl.leastRestrictiveByCast(List<RelDataType> types) |
private RelDataType |
SqlTypeFactoryImpl.leastRestrictiveSqlType(List<RelDataType> 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.
|
| Constructor and Description |
|---|
ArraySqlType(RelDataType elementType,
boolean isNullable)
Creates an ArraySqlType.
|
MapSqlType(RelDataType keyType,
RelDataType valueType,
boolean isNullable)
Creates a MapSqlType.
|
MultisetSqlType(RelDataType elementType,
boolean isNullable)
Constructs a new MultisetSqlType.
|
| Constructor and Description |
|---|
AssignableOperandTypeChecker(List<RelDataType> paramTypes,
List<String> paramNames)
Instantiates this strategy with a specific set of parameter types.
|
ExplicitOperandTypeInference(com.google.common.collect.ImmutableList<RelDataType> paramTypes)
|
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
SqlValidatorImpl.booleanType |
(package private) RelDataType |
SqlValidatorScope.Step.rowType |
protected RelDataType |
AbstractNamespace.rowType
Type of the output row, which comprises the name and type of each output
column.
|
protected RelDataType |
AbstractNamespace.type
As
AbstractNamespace.rowType, but not necessarily a struct. |
private RelDataType |
ParameterNamespace.type |
protected RelDataType |
SqlValidatorImpl.unknownType
The type of dynamic parameters until a type is imposed on them.
|
| Modifier and Type | Field and Description |
|---|---|
private Map<String,RelDataType> |
ParameterScope.nameToTypeMap
Map from the simple names of the parameters to types of the parameters
(
RelDataType). |
private Map<SqlNode,RelDataType> |
SqlValidatorImpl.nodeToTypeMap
Map of derived RelDataType for each node.
|
| Modifier and Type | Method and Description |
|---|---|
protected RelDataType |
AbstractNamespace.convertToStruct(RelDataType type) |
static RelDataType |
SqlValidatorUtil.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.
|
protected RelDataType |
SqlValidatorImpl.createTargetRowType(SqlValidatorTable table,
SqlNodeList targetColumnList,
boolean append)
Derives a row-type for INSERT and UPDATE operations.
|
RelDataType |
SqlValidatorCatalogReader.createTypeFromProjection(RelDataType type,
List<String> columnNameList) |
static RelDataType |
SqlValidatorUtil.createTypeFromProjection(RelDataType type,
List<String> columnNameList,
RelDataTypeFactory typeFactory,
boolean caseSensitive) |
RelDataType |
SqlValidator.deriveConstructorType(SqlValidatorScope scope,
SqlCall call,
SqlFunction unresolvedConstructor,
SqlFunction resolvedConstructor,
List<RelDataType> argTypes)
Derives the type of a constructor.
|
RelDataType |
SqlValidatorImpl.deriveConstructorType(SqlValidatorScope scope,
SqlCall call,
SqlFunction unresolvedConstructor,
SqlFunction resolvedConstructor,
List<RelDataType> argTypes) |
static RelDataType |
SqlValidatorUtil.deriveJoinRowType(RelDataType leftType,
RelDataType rightType,
JoinRelType joinType,
RelDataTypeFactory typeFactory,
List<String> fieldNameList,
List<RelDataTypeField> systemFieldList)
Derives the type of a join relational expression.
|
RelDataType |
SqlValidator.deriveType(SqlValidatorScope scope,
SqlNode operand)
Derives the type of a node in a given scope.
|
RelDataType |
SqlValidatorImpl.deriveType(SqlValidatorScope scope,
SqlNode expr) |
(package private) RelDataType |
SqlValidatorImpl.deriveTypeImpl(SqlValidatorScope scope,
SqlNode operand)
Derives the type of a node, never null.
|
private RelDataType |
TableNamespace.getBaseRowType()
Gets the data-type of all columns in a table (for a view table: including
columns of the underlying table)
|
protected RelDataType |
SqlValidatorImpl.getLogicalSourceRowType(RelDataType sourceRowType,
SqlInsert insert) |
protected RelDataType |
SqlValidatorImpl.getLogicalTargetRowType(RelDataType targetRowType,
SqlInsert insert) |
RelDataType |
DelegatingSqlValidatorCatalogReader.getNamedType(SqlIdentifier typeName) |
RelDataType |
SqlValidatorCatalogReader.getNamedType(SqlIdentifier typeName)
Finds a user-defined type with the given name, possibly qualified.
|
RelDataType |
SqlValidator.getParameterRowType(SqlNode sqlQuery)
Returns a record type that contains the name and type of each parameter.
|
RelDataType |
SqlValidatorImpl.getParameterRowType(SqlNode sqlQuery) |
RelDataType |
SqlUserDefinedAggFunction.getReturnType(RelDataTypeFactory typeFactory) |
RelDataType |
AbstractNamespace.getRowType() |
RelDataType |
DelegatingNamespace.getRowType() |
RelDataType |
SqlValidatorNamespace.getRowType()
Returns the row type of this namespace, which comprises a list of names
and types of the output columns.
|
RelDataType |
DelegatingSqlValidatorTable.getRowType() |
RelDataType |
ParameterNamespace.getRowType() |
RelDataType |
SqlValidatorTable.getRowType() |
RelDataType |
SqlUserDefinedTableFunction.getRowType(RelDataTypeFactory typeFactory,
List<SqlNode> operandList)
Returns the record type of the table yielded by this function when
applied to given arguments.
|
RelDataType |
AbstractNamespace.getRowTypeSansSystemColumns() |
RelDataType |
DelegatingNamespace.getRowTypeSansSystemColumns() |
RelDataType |
SqlValidatorNamespace.getRowTypeSansSystemColumns()
Returns the row type of this namespace, sans any system columns.
|
(package private) RelDataType |
SqlValidatorImpl.getTableConstructorRowType(SqlCall values,
SqlValidatorScope scope)
Returns null if there is no common type.
|
RelDataType |
AbstractNamespace.getType() |
RelDataType |
DelegatingNamespace.getType() |
RelDataType |
SqlValidatorNamespace.getType()
Returns the type of this namespace.
|
RelDataType |
SqlValidator.getUnknownType()
Returns an object representing the "unknown" type.
|
RelDataType |
SqlValidatorImpl.getUnknownType() |
RelDataType |
SqlValidator.getValidatedNodeType(SqlNode node)
Returns the type assigned to a node by validation.
|
RelDataType |
SqlValidatorImpl.getValidatedNodeType(SqlNode node) |
RelDataType |
SqlValidator.getValidatedNodeTypeIfKnown(SqlNode node)
Returns the type assigned to a node by validation, or null if unknown.
|
RelDataType |
SqlValidatorImpl.getValidatedNodeTypeIfKnown(SqlNode node) |
private RelDataType |
UnnestNamespace.inferReturnType()
Returns the type of the argument to UNNEST.
|
RelDataType |
SqlValidatorScope.nullifyType(SqlNode node,
RelDataType type)
Converts the type of an expression to nullable, if the context
warrants it.
|
RelDataType |
AggregatingSelectScope.nullifyType(SqlNode node,
RelDataType type) |
RelDataType |
EmptyScope.nullifyType(SqlNode node,
RelDataType type) |
RelDataType |
DelegatingScope.nullifyType(SqlNode node,
RelDataType type) |
RelDataType |
ListScope.resolveColumn(String columnName,
SqlNode ctx) |
RelDataType |
OrderByScope.resolveColumn(String name,
SqlNode ctx) |
RelDataType |
SqlValidatorScope.resolveColumn(String name,
SqlNode ctx)
Resolves a single identifier to a column, and returns the datatype of
that column.
|
RelDataType |
EmptyScope.resolveColumn(String name,
SqlNode ctx) |
RelDataType |
DelegatingScope.resolveColumn(String name,
SqlNode ctx) |
RelDataType |
SqlValidatorScope.Resolve.rowType()
The row type of the found namespace, nullable if the lookup has
looked into outer joins.
|
private RelDataType |
SqlUserDefinedAggFunction.toSql(RelDataType type) |
protected RelDataType |
AbstractNamespace.toStruct(RelDataType type,
SqlNode unnest)
Converts a type to a struct if it is not already.
|
protected RelDataType |
TableConstructorNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
SetopNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
WithNamespace.validateImpl(RelDataType targetRowType) |
protected abstract RelDataType |
AbstractNamespace.validateImpl(RelDataType targetRowType)
Validates this scope and returns the type of the records it returns.
|
protected RelDataType |
AliasNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
MatchRecognizeNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
UnnestNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
ProcedureNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
FieldNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
TableNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
WithItemNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
IdentifierNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
SelectNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
CollectNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
ParameterNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
SchemaNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
JoinNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
SqlValidatorImpl.validateSelectList(SqlNodeList selectItems,
SqlSelect select,
RelDataType targetRowType) |
private RelDataType |
SqlValidatorImpl.validateUsingCol(SqlIdentifier id,
SqlNode leftOrRight) |
RelDataType |
SqlValidatorImpl.DeriveTypeVisitor.visit(SqlCall call) |
RelDataType |
SqlValidatorImpl.DeriveTypeVisitor.visit(SqlDataTypeSpec dataType) |
RelDataType |
SqlValidatorImpl.DeriveTypeVisitor.visit(SqlDynamicParam param) |
RelDataType |
SqlValidatorImpl.DeriveTypeVisitor.visit(SqlIdentifier id) |
RelDataType |
SqlValidatorImpl.DeriveTypeVisitor.visit(SqlIntervalQualifier intervalQualifier) |
RelDataType |
SqlValidatorImpl.DeriveTypeVisitor.visit(SqlLiteral literal) |
RelDataType |
SqlValidatorImpl.DeriveTypeVisitor.visit(SqlNodeList nodeList) |
| Modifier and Type | Method and Description |
|---|---|
List<RelDataType> |
SqlUserDefinedAggFunction.getParameterTypes(RelDataTypeFactory typeFactory) |
List<RelDataType> |
SqlUserDefinedAggFunction.getParamTypes() |
private List<RelDataType> |
SqlUserDefinedAggFunction.toSql(List<RelDataType> types) |
private List<Map.Entry<String,RelDataType>> |
SqlValidatorImpl.validateMeasure(SqlMatchRecognize mr,
MatchRecognizeScope scope,
boolean allRows) |
| Modifier and Type | Method and Description |
|---|---|
static void |
SqlValidatorUtil.checkCharsetAndCollateConsistentIfCharType(RelDataType type) |
private void |
SqlValidatorImpl.checkConstraint(SqlValidatorTable validatorTable,
SqlNode source,
RelDataType targetRowType)
Validates insert values against the constraint of a modifiable view.
|
private void |
SqlValidatorImpl.checkConstraint(SqlValidatorTable validatorTable,
SqlUpdate update,
RelDataType targetRowType)
Validates updates against the constraint of a modifiable view.
|
private void |
SqlValidatorImpl.checkFieldCount(SqlNode node,
SqlValidatorTable table,
SqlNode source,
RelDataType logicalSourceRowType,
RelDataType logicalTargetRowType) |
protected void |
SqlValidatorImpl.checkTypeAssignment(RelDataType sourceRowType,
RelDataType targetRowType,
SqlNode query) |
private static Object |
SqlUserDefinedTableMacro.coerce(Object o,
RelDataType type) |
boolean |
SqlValidatorTable.columnHasDefaultValue(RelDataType rowType,
int ordinal,
InitializerContext initializerContext)
Deprecated.
|
protected RelDataType |
AbstractNamespace.convertToStruct(RelDataType type) |
static RelDataType |
SqlValidatorUtil.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.
|
RelDataType |
SqlValidatorCatalogReader.createTypeFromProjection(RelDataType type,
List<String> columnNameList) |
static RelDataType |
SqlValidatorUtil.createTypeFromProjection(RelDataType type,
List<String> columnNameList,
RelDataTypeFactory typeFactory,
boolean caseSensitive) |
static RelDataType |
SqlValidatorUtil.deriveJoinRowType(RelDataType leftType,
RelDataType rightType,
JoinRelType joinType,
RelDataTypeFactory typeFactory,
List<String> fieldNameList,
List<RelDataTypeField> systemFieldList)
Derives the type of a join relational expression.
|
static List<String> |
SqlValidatorUtil.deriveNaturalJoinColumnList(RelDataType leftRowType,
RelDataType rightRowType)
Derives the list of column names suitable for NATURAL JOIN.
|
private boolean |
SqlValidatorImpl.expandSelectItem(SqlNode selectItem,
SqlSelect select,
RelDataType targetType,
List<SqlNode> selectItems,
Set<String> aliases,
List<Map.Entry<String,RelDataType>> types,
boolean includeSystemVars)
If
selectItem is "*" or "TABLE.*", expands it and returns
true; otherwise writes the unexpanded item. |
RelDataTypeField |
SqlNameMatchers.BaseMatcher.field(RelDataType rowType,
String fieldName) |
RelDataTypeField |
SqlValidatorCatalogReader.field(RelDataType rowType,
String alias)
|
RelDataTypeField |
SqlNameMatcher.field(RelDataType rowType,
String fieldName)
Finds a field with a given name, using the current case-sensitivity,
returning null if not found.
|
static com.google.common.collect.ImmutableMap<Integer,RelDataTypeField> |
SqlValidatorUtil.getIndexToFieldMap(List<RelDataTypeField> sourceFields,
RelDataType targetFields)
Gets a map of indexes from the source to fields in the target for the
intersecting set of source and target fields.
|
protected RelDataType |
SqlValidatorImpl.getLogicalSourceRowType(RelDataType sourceRowType,
SqlInsert insert) |
protected RelDataType |
SqlValidatorImpl.getLogicalTargetRowType(RelDataType targetRowType,
SqlInsert insert) |
static ImmutableBitSet |
SqlValidatorUtil.getOrdinalBitSet(RelDataType sourceRowType,
Map<Integer,RelDataTypeField> indexToField)
Gets the bit-set to the column ordinals in the source for columns that
intersect in the target.
|
static ImmutableBitSet |
SqlValidatorUtil.getOrdinalBitSet(RelDataType sourceRowType,
RelDataType targetRowType)
Gets the bit-set to the column ordinals in the source for columns that intersect in the target.
|
private String |
AliasNamespace.getString(RelDataType rowType) |
static RelDataTypeField |
SqlValidatorUtil.getTargetField(RelDataType rowType,
RelDataTypeFactory typeFactory,
SqlIdentifier id,
SqlValidatorCatalogReader catalogReader,
RelOptTable table)
Resolve a target column name in the target table.
|
private boolean |
DelegatingScope.hasAmbiguousUnresolvedStar(RelDataType rowType,
RelDataTypeField field,
String columnName)
Returns whether
rowType contains more than one star column. |
protected void |
SqlValidatorImpl.inferUnknownTypes(RelDataType inferredType,
SqlValidatorScope scope,
SqlNode node) |
static RelDataTypeField |
SqlValidatorUtil.lookupField(boolean caseSensitive,
RelDataType rowType,
String columnName)
Deprecated.
|
(package private) SqlValidatorNamespace |
SqlValidatorImpl.lookupFieldNamespace(RelDataType rowType,
String name) |
RelDataType |
SqlValidatorScope.nullifyType(SqlNode node,
RelDataType type)
Converts the type of an expression to nullable, if the context
warrants it.
|
RelDataType |
AggregatingSelectScope.nullifyType(SqlNode node,
RelDataType type) |
RelDataType |
EmptyScope.nullifyType(SqlNode node,
RelDataType type) |
RelDataType |
DelegatingScope.nullifyType(SqlNode node,
RelDataType type) |
SqlValidatorScope.Step |
SqlValidatorScope.Path.plus(RelDataType rowType,
int i,
String name,
StructKind kind)
Creates a path that consists of this path plus one additional step.
|
void |
AbstractNamespace.setType(RelDataType type) |
void |
DelegatingNamespace.setType(RelDataType type) |
void |
SqlValidatorNamespace.setType(RelDataType type)
Sets the type of this namespace.
|
void |
FieldNamespace.setType(RelDataType type) |
void |
SqlValidator.setValidatedNodeType(SqlNode node,
RelDataType type)
Deprecated.
This method should not be in the
SqlValidator
interface. The validator should drive the type-derivation process, and
store nodes' types when they have been derived. |
void |
SqlValidatorImpl.setValidatedNodeType(SqlNode node,
RelDataType type)
Saves the type of a
SqlNode, now that it has been validated. |
private RelDataType |
SqlUserDefinedAggFunction.toSql(RelDataType type) |
protected RelDataType |
AbstractNamespace.toStruct(RelDataType type,
SqlNode unnest)
Converts a type to a struct if it is not already.
|
void |
AbstractNamespace.validate(RelDataType targetRowType) |
void |
DelegatingNamespace.validate(RelDataType targetRowType) |
void |
SqlValidatorNamespace.validate(RelDataType targetRowType)
Validates this namespace.
|
protected void |
SqlValidatorImpl.validateFrom(SqlNode node,
RelDataType targetRowType,
SqlValidatorScope scope)
Validates the FROM clause of a query, or (recursively) a child node of
the FROM clause: AS, OVER, JOIN, VALUES, or sub-query.
|
protected RelDataType |
TableConstructorNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
SetopNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
WithNamespace.validateImpl(RelDataType targetRowType) |
protected abstract RelDataType |
AbstractNamespace.validateImpl(RelDataType targetRowType)
Validates this scope and returns the type of the records it returns.
|
protected RelDataType |
AliasNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
MatchRecognizeNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
UnnestNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
ProcedureNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
FieldNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
TableNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
WithItemNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
IdentifierNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
SelectNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
CollectNamespace.validateImpl(RelDataType targetRowType) |
RelDataType |
ParameterNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
SchemaNamespace.validateImpl(RelDataType targetRowType) |
protected RelDataType |
JoinNamespace.validateImpl(RelDataType targetRowType) |
protected void |
SqlValidatorImpl.validateNamespace(SqlValidatorNamespace namespace,
RelDataType targetRowType)
Validates a namespace.
|
void |
SqlValidator.validateQuery(SqlNode node,
SqlValidatorScope scope,
RelDataType targetRowType)
Checks that a query is valid.
|
void |
SqlValidatorImpl.validateQuery(SqlNode node,
SqlValidatorScope scope,
RelDataType targetRowType) |
protected void |
SqlValidatorImpl.validateSelect(SqlSelect select,
RelDataType targetRowType)
Validates a SELECT statement.
|
protected RelDataType |
SqlValidatorImpl.validateSelectList(SqlNodeList selectItems,
SqlSelect select,
RelDataType targetRowType) |
protected void |
SqlValidatorImpl.validateValues(SqlCall node,
RelDataType targetRowType,
SqlValidatorScope scope)
Validates a VALUES clause.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
SqlValidatorUtil.addFields(List<RelDataTypeField> fieldList,
List<RelDataType> typeList,
List<String> nameList,
Set<String> uniqueNames) |
private boolean |
SqlValidatorImpl.addOrExpandField(List<SqlNode> selectItems,
Set<String> aliases,
List<Map.Entry<String,RelDataType>> types,
boolean includeSystemVars,
SelectScope scope,
SqlIdentifier id,
RelDataTypeField field) |
protected void |
SqlValidatorImpl.addToSelectList(List<SqlNode> list,
Set<String> aliases,
List<Map.Entry<String,RelDataType>> fieldList,
SqlNode exp,
SqlValidatorScope scope,
boolean includeSystemVars)
Adds an expression to a select list, ensuring that its alias does not
clash with any existing expressions on the list.
|
RelDataType |
SqlValidator.deriveConstructorType(SqlValidatorScope scope,
SqlCall call,
SqlFunction unresolvedConstructor,
SqlFunction resolvedConstructor,
List<RelDataType> argTypes)
Derives the type of a constructor.
|
RelDataType |
SqlValidatorImpl.deriveConstructorType(SqlValidatorScope scope,
SqlCall call,
SqlFunction unresolvedConstructor,
SqlFunction resolvedConstructor,
List<RelDataType> argTypes) |
private boolean |
SqlValidatorImpl.expandSelectItem(SqlNode selectItem,
SqlSelect select,
RelDataType targetType,
List<SqlNode> selectItems,
Set<String> aliases,
List<Map.Entry<String,RelDataType>> types,
boolean includeSystemVars)
If
selectItem is "*" or "TABLE.*", expands it and returns
true; otherwise writes the unexpanded item. |
private boolean |
SqlValidatorImpl.expandStar(List<SqlNode> selectItems,
Set<String> aliases,
List<Map.Entry<String,RelDataType>> types,
boolean includeSystemVars,
SelectScope scope,
SqlNode node) |
private void |
SqlValidatorImpl.handleScalarSubQuery(SqlSelect parentSelect,
SqlSelect selectItem,
List<SqlNode> expandedSelectItems,
Set<String> aliasList,
List<Map.Entry<String,RelDataType>> fieldList)
Processes SubQuery found in Select list.
|
CalciteException |
SqlValidator.handleUnresolvedFunction(SqlCall call,
SqlFunction unresolvedFunction,
List<RelDataType> argTypes,
List<String> argNames)
Handles a call to a function which cannot be resolved.
|
CalciteException |
SqlValidatorImpl.handleUnresolvedFunction(SqlCall call,
SqlFunction unresolvedFunction,
List<RelDataType> argTypes,
List<String> argNames) |
private List<RelDataType> |
SqlUserDefinedAggFunction.toSql(List<RelDataType> types) |
void |
SqlValidator.validateColumnListParams(SqlFunction function,
List<RelDataType> argTypes,
List<SqlNode> operands)
Validates a COLUMN_LIST parameter
|
void |
SqlValidatorImpl.validateColumnListParams(SqlFunction function,
List<RelDataType> argTypes,
List<SqlNode> operands) |
SqlNode |
SqlValidator.validateParameterizedExpression(SqlNode topNode,
Map<String,RelDataType> nameToTypeMap)
Validates an expression tree.
|
SqlNode |
SqlValidatorImpl.validateParameterizedExpression(SqlNode topNode,
Map<String,RelDataType> nameToTypeMap) |
| Constructor and Description |
|---|
FieldNamespace(SqlValidatorImpl validator,
RelDataType dataType)
Creates a FieldNamespace.
|
ParameterNamespace(SqlValidatorImpl validator,
RelDataType type) |
Step(SqlValidatorScope.Path parent,
RelDataType rowType,
int i,
String name,
StructKind kind) |
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
RelStructuredTypeFlattener.flattenedRootType |
| Modifier and Type | Method and Description |
|---|---|
private RelDataType |
SqlToRelConverter.HistogramShuttle.computeHistogramType(RelDataType type)
Returns the type for a histogram function.
|
private static RelDataType |
StandardConvertletTable.consistentType(SqlRexContext cx,
SqlOperandTypeChecker.Consistency consistency,
List<RelDataType> types) |
RelDataType |
SqlToRelConverter.getDynamicParamType(int index)
Returns the type inferred for a dynamic parameter.
|
private RelDataType |
RelStructuredTypeFlattener.RewriteRexShuttle.removeDistinct(RelDataType type) |
| Modifier and Type | Method and Description |
|---|---|
private int |
RelStructuredTypeFlattener.calculateFlattenedOffset(RelDataType rowType,
int ordinal) |
private RexNode |
SqlToRelConverter.castNullLiteralIfNeeded(RexNode node,
RelDataType type) |
private RelDataType |
SqlToRelConverter.HistogramShuttle.computeHistogramType(RelDataType type)
Returns the type for a histogram function.
|
private RelOptUtil.Exists |
SqlToRelConverter.convertExists(SqlNode seek,
RelOptUtil.SubQueryType subQueryType,
RelOptUtil.Logic logic,
boolean notIn,
RelDataType targetDataType)
Converts an EXISTS or IN predicate into a join.
|
private RexLiteral |
SqlToRelConverter.convertLiteralInValuesList(SqlNode sqlNode,
SqlToRelConverter.Blackboard bb,
RelDataType rowType,
int iField) |
private RelNode |
SqlToRelConverter.convertQueryOrInList(SqlToRelConverter.Blackboard bb,
SqlNode seek,
RelDataType targetRowType) |
protected RelRoot |
SqlToRelConverter.convertQueryRecursive(SqlNode query,
boolean top,
RelDataType targetRowType)
Recursively converts a query to a relational expression.
|
private RelNode |
SqlToRelConverter.convertRowValues(SqlToRelConverter.Blackboard bb,
SqlNode rowList,
Collection<SqlNode> rows,
boolean allowLiteralsOnly,
RelDataType targetRowType) |
RelNode |
SqlToRelConverter.convertValues(SqlCall values,
RelDataType targetRowType)
Converts a SELECT statement's parse tree into a relational expression.
|
private void |
SqlToRelConverter.convertValuesImpl(SqlToRelConverter.Blackboard bb,
SqlCall values,
RelDataType targetRowType)
Converts a values clause (as in "INSERT INTO T(x,y) VALUES (1,2)") into a
relational expression.
|
private RelNode |
SqlToRelConverter.createSource(RelOptTable targetTable,
RelNode source,
ModifiableView modifiableView,
RelDataType delegateRowType)
Wraps a relational expression in the projects and filters implied by
a
ModifiableView. |
private RexNode |
SqlToRelConverter.ensureSqlType(RelDataType type,
RexNode node)
Ensures that an expression has a given
SqlTypeName, applying a
cast if necessary. |
private SqlNode |
StandardConvertletTable.AvgVarianceConvertlet.expandAvg(SqlNode arg,
RelDataType avgType,
SqlRexContext cx) |
private SqlNode |
StandardConvertletTable.AvgVarianceConvertlet.expandVariance(SqlNode argInput,
RelDataType varType,
SqlRexContext cx,
boolean biased,
boolean sqrt) |
private void |
RelStructuredTypeFlattener.flattenNullLiteral(RelDataType type,
List<Pair<RexNode,String>> flattenedExps) |
private boolean |
RelDecorrelator.isWidening(RelDataType type,
RelDataType type1)
Returns whether one type is just a widening of another.
|
private RexNode |
StandardConvertletTable.mod(RexBuilder rexBuilder,
RelDataType resType,
RexNode res,
BigDecimal val) |
RexNode |
InitializerExpressionFactory.newAttributeInitializer(RelDataType type,
SqlFunction constructor,
int iAttribute,
List<RexNode> constructorArgs,
InitializerContext context)
Creates an expression which evaluates to the initializer expression for a
particular attribute of a structured type.
|
RexNode |
NullInitializerExpressionFactory.newAttributeInitializer(RelDataType type,
SqlFunction constructor,
int iAttribute,
List<RexNode> constructorArgs,
InitializerContext context) |
private RelDataType |
RelStructuredTypeFlattener.RewriteRexShuttle.removeDistinct(RelDataType type) |
private RexNode |
RelStructuredTypeFlattener.restructure(RelDataType structuredType) |
private List<RexNode> |
RelStructuredTypeFlattener.restructureFields(RelDataType structuredType) |
| Modifier and Type | Method and Description |
|---|---|
private static RelDataType |
StandardConvertletTable.consistentType(SqlRexContext cx,
SqlOperandTypeChecker.Consistency consistency,
List<RelDataType> types) |
| Modifier and Type | Method and Description |
|---|---|
Pair<SqlNode,RelDataType> |
Planner.validateAndGetType(SqlNode sqlNode)
Validates a SQL statement.
|
| Modifier and Type | Method and Description |
|---|---|
RelBuilder |
RelBuilder.convert(RelDataType castRowType,
boolean rename)
Creates a projection that converts the current relational expression's
output to a desired row type.
|
PigRelBuilder |
PigRelBuilder.load(String path,
RexNode loadFunction,
RelDataType rowType)
Loads a data set.
|
RexNode |
RelBuilder.patternField(String alpha,
RelDataType type,
int i)
Creates a reference to a given field of the pattern.
|
RelBuilder |
RelBuilder.values(Iterable<? extends List<RexLiteral>> tupleList,
RelDataType rowType)
Creates a
Values with a specified row type. |
RelBuilder |
RelBuilder.values(RelDataType rowType)
Creates a
Values with a specified row type and
zero rows. |
RelBuilder |
RelBuilder.values(RelDataType rowType,
Object... columnValues)
Creates a
Values with a specified row type. |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.