Uses of Interface
org.apache.calcite.rel.type.RelDataTypeField
-
Packages that use RelDataTypeField Package Description org.apache.calcite.adapter.cassandra Cassandra query provider.org.apache.calcite.adapter.druid Query provider based on a Druid database.org.apache.calcite.adapter.geode.rel Query provider based on Apache Geode (Gemfire) In Memory Data Gridorg.apache.calcite.adapter.geode.util Query provider based on Apache Geode (Gemfire) In Memory Data Gridorg.apache.calcite.adapter.pig Pig query provider.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.prepare Preparation of queries (parsing, planning and implementation).org.apache.calcite.rel.core Defines core relational expressions.org.apache.calcite.rel.externalize Facilities to externalizeRelNode
s 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.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.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. -
-
Uses of RelDataTypeField in org.apache.calcite.adapter.cassandra
Fields in org.apache.calcite.adapter.cassandra with type parameters of type RelDataTypeField Modifier and Type Field Description private java.util.List<RelDataTypeField>
CassandraEnumerator. fieldTypes
-
Uses of RelDataTypeField in org.apache.calcite.adapter.druid
Methods in org.apache.calcite.adapter.druid with parameters of type RelDataTypeField Modifier and Type Method Description private org.apache.calcite.avatica.ColumnMetaData.Rep
DruidQuery.DruidQueryNode. getPrimitive(RelDataTypeField field)
-
Uses of RelDataTypeField in org.apache.calcite.adapter.geode.rel
Fields in org.apache.calcite.adapter.geode.rel with type parameters of type RelDataTypeField Modifier and Type Field Description private java.util.List<RelDataTypeField>
GeodeEnumerator. fieldTypes
-
Uses of RelDataTypeField in org.apache.calcite.adapter.geode.util
Method parameters in org.apache.calcite.adapter.geode.util with type arguments of type RelDataTypeField Modifier and Type Method Description static java.lang.Object
GeodeUtils. convertToRowValues(java.util.List<RelDataTypeField> relDataTypeFields, java.lang.Object geodeResultObject)
Converts a Geode object into a Row tuple.private static java.lang.Object
GeodeUtils. handleJavaObjectEntry(java.util.List<RelDataTypeField> relDataTypeFields, java.lang.Object obj)
private static java.lang.Object
GeodeUtils. handlePdxInstanceEntry(java.util.List<RelDataTypeField> relDataTypeFields, java.lang.Object obj)
private static java.lang.Object
GeodeUtils. handleStructEntry(java.util.List<RelDataTypeField> relDataTypeFields, java.lang.Object obj)
private void
JavaTypeFactoryExtImpl. recursiveCreatePdxType(org.apache.geode.pdx.PdxInstance pdxInstance, java.util.List<RelDataTypeField> list, java.lang.String fieldNamePrefix)
-
Uses of RelDataTypeField in org.apache.calcite.adapter.pig
Methods in org.apache.calcite.adapter.pig with parameters of type RelDataTypeField Modifier and Type Method Description private java.lang.String
PigTableScan. getConcatenatedFieldNameAndTypeForPigSchema(PigRel.Implementor implementor, RelDataTypeField field)
-
Uses of RelDataTypeField in org.apache.calcite.jdbc
Constructor parameters in org.apache.calcite.jdbc with type arguments of type RelDataTypeField Constructor Description JavaRecordType(java.util.List<RelDataTypeField> fields, java.lang.Class clazz)
-
Uses of RelDataTypeField in org.apache.calcite.materialize
Methods in org.apache.calcite.materialize that return RelDataTypeField Modifier and Type Method Description (package private) RelDataTypeField
LatticeTable. field(int i)
-
Uses of RelDataTypeField in org.apache.calcite.plan
Fields in org.apache.calcite.plan with type parameters of type RelDataTypeField Modifier and Type Field Description protected java.util.List<RelDataTypeField>
RelOptUtil.RexInputConverter. destFields
private java.util.Set<RelDataTypeField>
RelOptUtil.InputFinder. extraFields
private java.util.List<RelDataTypeField>
RelOptUtil.RexInputConverter. leftDestFields
private java.util.List<RelDataTypeField>
RelOptUtil.RexInputConverter. rightDestFields
private java.util.List<RelDataTypeField>
RelOptUtil.RexInputConverter. srcFields
Methods in org.apache.calcite.plan that return types with arguments of type RelDataTypeField Modifier and Type Method Description static java.util.List<RelDataTypeField>
RelOptUtil. deduplicateColumns(java.util.List<RelDataTypeField> baseColumns, java.util.List<RelDataTypeField> extendedColumns)
Returns the set of columns with unique names, with prior columns taking precedence over columns that appear later in the list.Method parameters in org.apache.calcite.plan with type arguments of type RelDataTypeField Modifier and Type Method Description private void
RelOptUtil.TypeDumper. acceptFields(java.util.List<RelDataTypeField> fields)
static java.util.List<RelDataTypeField>
RelOptUtil. deduplicateColumns(java.util.List<RelDataTypeField> baseColumns, java.util.List<RelDataTypeField> extendedColumns)
Returns the set of columns with unique names, with prior columns taking precedence over columns that appear later in the list.RelOptTable
RelOptAbstractTable. extend(java.util.List<RelDataTypeField> extendedFields)
RelOptTable
RelOptTable. extend(java.util.List<RelDataTypeField> extendedFields)
Returns a table with the given extra fields.private static RexNode
RelOptUtil. shiftFilter(int start, int end, int offset, RexBuilder rexBuilder, java.util.List<RelDataTypeField> joinFields, int nTotalFields, java.util.List<RelDataTypeField> rightFields, RexNode filter)
static RexNode
RelOptUtil. splitJoinCondition(java.util.List<RelDataTypeField> sysFieldList, java.util.List<RelNode> inputs, RexNode condition, java.util.List<java.util.List<RexNode>> joinKeys, java.util.List<java.lang.Integer> filterNulls, java.util.List<SqlOperator> rangeOp)
Splits out the equi-join (and optionally, a single non-equi) components of a join condition, and returns what's left.private static void
RelOptUtil. splitJoinCondition(java.util.List<RelDataTypeField> sysFieldList, java.util.List<RelNode> inputs, RexNode condition, java.util.List<java.util.List<RexNode>> joinKeys, java.util.List<java.lang.Integer> filterNulls, java.util.List<SqlOperator> rangeOp, java.util.List<RexNode> nonEquiList)
static RexNode
RelOptUtil. splitJoinCondition(java.util.List<RelDataTypeField> sysFieldList, RelNode leftRel, RelNode rightRel, RexNode condition, java.util.List<RexNode> leftJoinKeys, java.util.List<RexNode> rightJoinKeys, java.util.List<java.lang.Integer> filterNulls, java.util.List<SqlOperator> rangeOp)
Splits out the equi-join (and optionally, a single non-equi) components of a join condition, and returns what's left.private static RexNode
MaterializedViewSubstitutionVisitor. transformRex(RexNode node, java.util.List<RelDataTypeField> oldFields, java.util.List<RelDataTypeField> newFields)
Constructor parameters in org.apache.calcite.plan with type arguments of type RelDataTypeField Constructor Description InputFinder(java.util.Set<RelDataTypeField> extraFields)
RexInputConverter(RexBuilder rexBuilder, java.util.List<RelDataTypeField> srcFields, int[] adjustments)
RexInputConverter(RexBuilder rexBuilder, java.util.List<RelDataTypeField> srcFields, java.util.List<RelDataTypeField> destFields, int[] adjustments)
RexInputConverter(RexBuilder rexBuilder, java.util.List<RelDataTypeField> srcFields, java.util.List<RelDataTypeField> leftDestFields, java.util.List<RelDataTypeField> rightDestFields, int[] adjustments)
RexInputConverter(RexBuilder rexBuilder, java.util.List<RelDataTypeField> srcFields, java.util.List<RelDataTypeField> destFields, java.util.List<RelDataTypeField> leftDestFields, java.util.List<RelDataTypeField> rightDestFields, int[] adjustments)
-
Uses of RelDataTypeField in org.apache.calcite.prepare
Methods in org.apache.calcite.prepare that return RelDataTypeField Modifier and Type Method Description RelDataTypeField
CalciteCatalogReader. field(RelDataType rowType, java.lang.String alias)
Method parameters in org.apache.calcite.prepare with type arguments of type RelDataTypeField Modifier and Type Method Description RelOptTable
Prepare.AbstractPreparingTable. extend(java.util.List<RelDataTypeField> extendedFields)
-
Uses of RelDataTypeField in org.apache.calcite.rel.core
Methods in org.apache.calcite.rel.core that return types with arguments of type RelDataTypeField Modifier and Type Method Description java.util.List<RelDataTypeField>
Join. getSystemFieldList()
Returns a list of system fields that will be prefixed to output row type.Method parameters in org.apache.calcite.rel.core with type arguments of type RelDataTypeField Modifier and Type Method Description RelNode
TableScan. project(ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields, RelBuilder relBuilder)
Projects a subset of the fields of the table, and also asks for "extra" fields that were not included in the table's official type. -
Uses of RelDataTypeField in org.apache.calcite.rel.externalize
Methods in org.apache.calcite.rel.externalize with parameters of type RelDataTypeField Modifier and Type Method Description private java.lang.Object
RelJson. toJson(RelDataTypeField node)
-
Uses of RelDataTypeField in org.apache.calcite.rel.logical
Fields in org.apache.calcite.rel.logical with type parameters of type RelDataTypeField Modifier and Type Field Description private com.google.common.collect.ImmutableList<RelDataTypeField>
LogicalJoin. systemFieldList
Methods in org.apache.calcite.rel.logical that return types with arguments of type RelDataTypeField Modifier and Type Method Description java.util.List<RelDataTypeField>
LogicalJoin. getSystemFieldList()
Method parameters in org.apache.calcite.rel.logical with type arguments of type RelDataTypeField Modifier and Type Method Description static LogicalJoin
LogicalJoin. create(RelNode left, RelNode right, RexNode condition, java.util.Set<CorrelationId> variablesSet, JoinRelType joinType, boolean semiJoinDone, com.google.common.collect.ImmutableList<RelDataTypeField> systemFieldList)
Creates a LogicalJoin, flagged with whether it has been translated to a semi-join.static LogicalJoin
LogicalJoin. create(RelNode left, RelNode right, RexNode condition, JoinRelType joinType, java.util.Set<java.lang.String> variablesStopped, boolean semiJoinDone, com.google.common.collect.ImmutableList<RelDataTypeField> systemFieldList)
Deprecated.Constructor parameters in org.apache.calcite.rel.logical with type arguments of type RelDataTypeField Constructor Description LogicalJoin(RelOptCluster cluster, RelTraitSet traitSet, RelNode left, RelNode right, RexNode condition, java.util.Set<CorrelationId> variablesSet, JoinRelType joinType, boolean semiJoinDone, com.google.common.collect.ImmutableList<RelDataTypeField> systemFieldList)
Creates a LogicalJoin.LogicalJoin(RelOptCluster cluster, RelTraitSet traitSet, RelNode left, RelNode right, RexNode condition, JoinRelType joinType, java.util.Set<java.lang.String> variablesStopped, boolean semiJoinDone, com.google.common.collect.ImmutableList<RelDataTypeField> systemFieldList)
Deprecated.LogicalJoin(RelOptCluster cluster, RelNode left, RelNode right, RexNode condition, JoinRelType joinType, java.util.Set<java.lang.String> variablesStopped, boolean semiJoinDone, com.google.common.collect.ImmutableList<RelDataTypeField> systemFieldList)
Deprecated. -
Uses of RelDataTypeField in org.apache.calcite.rel.metadata
Methods in org.apache.calcite.rel.metadata with parameters of type RelDataTypeField Modifier and Type Method Description protected java.lang.Double
RelMdSize. averageFieldValueSize(RelDataTypeField field)
Estimates the average size (in bytes) of a value of a field, knowing nothing more than its type. -
Uses of RelDataTypeField in org.apache.calcite.rel.rules
Fields in org.apache.calcite.rel.rules with type parameters of type RelDataTypeField Modifier and Type Field Description (package private) java.util.List<RelDataTypeField>
PushProjector. childFields
Fields from the RelNode that the projection is being pushed pastprivate java.util.List<RelDataTypeField>
JoinCommuteRule.VariableReplacer. leftFields
private java.util.List<RelDataTypeField>
JoinCommuteRule.VariableReplacer. rightFields
Methods in org.apache.calcite.rel.rules that return types with arguments of type RelDataTypeField Modifier and Type Method Description java.util.List<RelDataTypeField>
LoptMultiJoin. getJoinFields(LoptJoinTree left, LoptJoinTree right)
Retrieves the fields corresponding to a join between a left and right treejava.util.List<RelDataTypeField>
LoptMultiJoin. getMultiJoinFields()
Returns array of fields contained within the multi-joinMethod parameters in org.apache.calcite.rel.rules with type arguments of type RelDataTypeField Modifier and Type Method Description RexNode
PushProjector. convertRefsAndExprs(RexNode rex, java.util.List<RelDataTypeField> destFields, int[] adjustments)
Clones an expression tree and walks through it, adjusting each RexInputRef index by some amount, and converting expressions that need to be preserved to field references.protected void
JoinProjectTransposeRule. createProjectExprs(Project projRel, RelNode joinChild, int adjustmentAmount, RexBuilder rexBuilder, java.util.List<RelDataTypeField> joinChildrenFields, java.util.List<Pair<RexNode,java.lang.String>> projects)
Creates projection expressions corresponding to one of the inputs into the joinConstructor parameters in org.apache.calcite.rel.rules with type arguments of type RelDataTypeField Constructor Description RefAndExprConverter(RexBuilder rexBuilder, java.util.List<RelDataTypeField> srcFields, java.util.List<RelDataTypeField> destFields, int[] adjustments, java.util.List<RexNode> preserveLeft, int firstLeftRef, java.util.List<RexNode> preserveRight, int firstRightRef)
-
Uses of RelDataTypeField in org.apache.calcite.rel.type
Classes in org.apache.calcite.rel.type that implement RelDataTypeField Modifier and Type Class Description class
RelDataTypeFieldImpl
Default implementation ofRelDataTypeField
.Fields in org.apache.calcite.rel.type declared as RelDataTypeField Modifier and Type Field Description (package private) RelDataTypeField
RelDataTypeImpl.Slot. field
Fields in org.apache.calcite.rel.type with type parameters of type RelDataTypeField Modifier and Type Field Description protected java.util.List<RelDataTypeField>
RelDataTypeImpl. fieldList
private java.util.List<RelDataTypeField>
RelDataTypeHolder. fields
private java.util.List<RelDataTypeField>
RelRecordType.SerializableRelRecordType. fields
Methods in org.apache.calcite.rel.type that return RelDataTypeField Modifier and Type Method Description static RelDataTypeField
RelDataTypeImpl. extra(RelDataType rowType)
Returns the "extra" field in a row type whose presence signals that fields will come into existence just by asking for them.RelDataTypeField
DynamicRecordTypeImpl. getField(java.lang.String fieldName, boolean caseSensitive, boolean elideRecord)
RelDataTypeField
RelDataType. getField(java.lang.String fieldName, boolean caseSensitive, boolean elideRecord)
Looks up a field by name.RelDataTypeField
RelDataTypeImpl. getField(java.lang.String fieldName, boolean caseSensitive, boolean elideRecord)
Methods in org.apache.calcite.rel.type that return types with arguments of type RelDataTypeField Modifier and Type Method Description java.util.List<RelDataTypeField>
DynamicRecordTypeImpl. getFieldList()
java.util.List<RelDataTypeField>
RelCrossType. getFieldList()
java.util.List<RelDataTypeField>
RelDataType. getFieldList()
Gets the fields in a struct type.private static java.util.List<RelDataTypeField>
RelDataTypeFactoryImpl. getFieldList(java.util.List<RelDataType> types)
Returns a list of the fields in a list of types.java.util.List<RelDataTypeField>
RelDataTypeHolder. getFieldList()
java.util.List<RelDataTypeField>
RelDataTypeImpl. getFieldList()
(package private) Pair<RelDataTypeField,java.lang.Boolean>
RelDataTypeHolder. getFieldOrInsert(java.lang.String fieldName, boolean caseSensitive)
Get field if exists, otherwise inserts a new field.Methods in org.apache.calcite.rel.type with parameters of type RelDataTypeField Modifier and Type Method Description RelDataTypeFactory.Builder
RelDataTypeFactory.Builder. add(RelDataTypeField field)
Adds a field.RelDataTypeFactory.FieldInfoBuilder
RelDataTypeFactory.FieldInfoBuilder. add(RelDataTypeField field)
Deprecated.java.lang.Integer
RelDataTypeField.ToFieldIndex. apply(RelDataTypeField o)
Deprecated.java.lang.String
RelDataTypeField.ToFieldName. apply(RelDataTypeField o)
Deprecated.Method parameters in org.apache.calcite.rel.type with type arguments of type RelDataTypeField Modifier and Type Method Description private static void
RelDataTypeFactoryImpl. addFields(RelDataType type, java.util.List<RelDataTypeField> fieldList)
Adds all fields intype
tofieldList
, renumbering the fields (if necessary) to ensure that their index matches their position in the list.Constructor parameters in org.apache.calcite.rel.type with type arguments of type RelDataTypeField Constructor Description RelDataTypeImpl(java.util.List<? extends RelDataTypeField> fieldList)
Creates a RelDataTypeImpl.RelRecordType(java.util.List<RelDataTypeField> fields)
RelRecordType(StructKind kind, java.util.List<RelDataTypeField> fields)
Creates aRecordType
.SerializableRelRecordType(java.util.List<RelDataTypeField> fields)
-
Uses of RelDataTypeField in org.apache.calcite.rex
Fields in org.apache.calcite.rex declared as RelDataTypeField Modifier and Type Field Description private RelDataTypeField
RexFieldAccess. field
Fields in org.apache.calcite.rex with type parameters of type RelDataTypeField Modifier and Type Field Description private com.google.common.collect.ImmutableList<RelDataTypeField>
RexPermuteInputsShuttle. fields
Methods in org.apache.calcite.rex that return RelDataTypeField Modifier and Type Method Description RelDataTypeField
RexFieldAccess. getField()
Methods in org.apache.calcite.rex that return types with arguments of type RelDataTypeField Modifier and Type Method Description private static com.google.common.collect.ImmutableList<RelDataTypeField>
RexPermuteInputsShuttle. fields(RelNode[] inputs)
Methods in org.apache.calcite.rex with parameters of type RelDataTypeField Modifier and Type Method Description private RexNode
RexBuilder. makeFieldAccessInternal(RexNode expr, RelDataTypeField field)
Creates an expression accessing a given field from a record.Method parameters in org.apache.calcite.rex with type arguments of type RelDataTypeField Modifier and Type Method Description private static int
RexPermuteInputsShuttle. lookup(java.util.List<RelDataTypeField> fields, java.lang.String name)
static RexInputRef
RexInputRef. of(int index, java.util.List<RelDataTypeField> fields)
Creates a reference to a given field in a list of fields.static Pair<RexNode,java.lang.String>
RexInputRef. of2(int index, java.util.List<RelDataTypeField> fields)
Creates a reference to a given field in a list of fields.Constructors in org.apache.calcite.rex with parameters of type RelDataTypeField Constructor Description RexFieldAccess(RexNode expr, RelDataTypeField field)
Constructor parameters in org.apache.calcite.rex with type arguments of type RelDataTypeField Constructor Description RexPermuteInputsShuttle(Mappings.TargetMapping mapping, com.google.common.collect.ImmutableList<RelDataTypeField> fields)
-
Uses of RelDataTypeField in org.apache.calcite.schema
Methods in org.apache.calcite.schema that return types with arguments of type RelDataTypeField Modifier and Type Method Description java.util.List<Pair<RelDataTypeField,java.util.List<java.lang.String>>>
CustomColumnResolvingTable. resolveColumn(RelDataType rowType, RelDataTypeFactory typeFactory, java.util.List<java.lang.String> names)
Resolve a column based on the name components.Method parameters in org.apache.calcite.schema with type arguments of type RelDataTypeField Modifier and Type Method Description Table
ExtensibleTable. extend(java.util.List<RelDataTypeField> fields)
Returns a table that has the row type of this table plus the given fields. -
Uses of RelDataTypeField in org.apache.calcite.schema.impl
Method parameters in org.apache.calcite.schema.impl with type arguments of type RelDataTypeField Modifier and Type Method Description ModifiableViewTable
ModifiableViewTable. extend(java.util.List<RelDataTypeField> extendedColumns, RelDataTypeFactory typeFactory)
Extends the underlying table and returns a new view with updated row-type and column-mapping.private static ImmutableIntList
ModifiableViewTable. getNewColumnMapping(Table underlying, ImmutableIntList oldColumnMapping, java.util.List<RelDataTypeField> extendedColumns, RelDataTypeFactory typeFactory)
Creates a mapping from the view index to the index in the underlying table. -
Uses of RelDataTypeField in org.apache.calcite.sql.fun
Method parameters in org.apache.calcite.sql.fun with type arguments of type RelDataTypeField Modifier and Type Method Description private static boolean
SqlInOperator. anyNullable(java.util.List<RelDataTypeField> fieldList)
-
Uses of RelDataTypeField in org.apache.calcite.sql.type
Methods in org.apache.calcite.sql.type with parameters of type RelDataTypeField Modifier and Type Method Description private void
TableFunctionReturnTypeInference. addOutputColumn(java.util.List<java.lang.String> expandedFieldNames, java.util.List<RelDataType> expandedOutputTypes, int iInputColumn, int iCursor, SqlOperatorBinding opBinding, RelDataTypeField cursorField)
Method parameters in org.apache.calcite.sql.type with type arguments of type RelDataTypeField Modifier and Type Method Description private static boolean
SqlTypeUtil. flattenFields(RelDataTypeFactory typeFactory, RelDataType type, java.util.List<RelDataTypeField> list, int[] flatteningMap)
Constructor parameters in org.apache.calcite.sql.type with type arguments of type RelDataTypeField Constructor Description AbstractSqlType(SqlTypeName typeName, boolean isNullable, java.util.List<? extends RelDataTypeField> fields)
Creates an AbstractSqlType.ObjectSqlType(SqlTypeName typeName, SqlIdentifier sqlIdentifier, boolean nullable, java.util.List<? extends RelDataTypeField> fields, RelDataTypeComparability comparability)
Constructs an object type. -
Uses of RelDataTypeField in org.apache.calcite.sql.validate
Fields in org.apache.calcite.sql.validate with type parameters of type RelDataTypeField Modifier and Type Field Description com.google.common.collect.ImmutableList<RelDataTypeField>
TableNamespace. extendedFields
Methods in org.apache.calcite.sql.validate that return RelDataTypeField Modifier and Type Method Description RelDataTypeField
SqlNameMatcher. field(RelDataType rowType, java.lang.String fieldName)
Finds a field with a given name, using the current case-sensitivity, returning null if not found.RelDataTypeField
SqlNameMatchers.BaseMatcher. field(RelDataType rowType, java.lang.String fieldName)
RelDataTypeField
SqlValidatorCatalogReader. field(RelDataType rowType, java.lang.String alias)
private RelDataTypeField
SqlValidatorImpl.Permute. field(java.lang.String name)
static RelDataTypeField
SqlValidatorUtil. getTargetField(RelDataType rowType, RelDataTypeFactory typeFactory, SqlIdentifier id, SqlValidatorCatalogReader catalogReader, RelOptTable table)
Resolve a target column name in the target table.static RelDataTypeField
SqlValidatorUtil. lookupField(boolean caseSensitive, RelDataType rowType, java.lang.String columnName)
Deprecated.Methods in org.apache.calcite.sql.validate that return types with arguments of type RelDataTypeField Modifier and Type Method Description static java.util.List<RelDataTypeField>
SqlValidatorUtil. getExtendedColumns(RelDataTypeFactory typeFactory, SqlValidatorTable table, SqlNodeList extendedColumns)
Gets a list of extended columns with field indices to the underlying table.static com.google.common.collect.ImmutableMap<java.lang.Integer,RelDataTypeField>
SqlValidatorUtil. getIndexToFieldMap(java.util.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.Methods in org.apache.calcite.sql.validate with parameters of type RelDataTypeField Modifier and Type Method Description private boolean
SqlValidatorImpl. addOrExpandField(java.util.List<SqlNode> selectItems, java.util.Set<java.lang.String> aliases, java.util.List<java.util.Map.Entry<java.lang.String,RelDataType>> fields, boolean includeSystemVars, SelectScope scope, SqlIdentifier id, RelDataTypeField field)
private boolean
DelegatingScope. hasAmbiguousUnresolvedStar(RelDataType rowType, RelDataTypeField field, java.lang.String columnName)
Returns whetherrowType
contains more than one star column.boolean
SqlValidator. isSystemField(RelDataTypeField field)
Returns whether a field is a system field.boolean
SqlValidatorImpl. isSystemField(RelDataTypeField field)
Method parameters in org.apache.calcite.sql.validate with type arguments of type RelDataTypeField Modifier and Type Method Description private static void
SqlValidatorUtil. addFields(java.util.List<RelDataTypeField> fieldList, java.util.List<RelDataType> typeList, java.util.List<java.lang.String> nameList, java.util.Set<java.lang.String> uniqueNames)
static com.google.common.collect.ImmutableMap<java.lang.Integer,RelDataTypeField>
SqlValidatorUtil. getIndexToFieldMap(java.util.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.static ImmutableBitSet
SqlValidatorUtil. getOrdinalBitSet(RelDataType sourceRowType, java.util.Map<java.lang.Integer,RelDataTypeField> indexToField)
Gets the bit-set to the column ordinals in the source for columns that intersect in the target.private static RelOptTable
SqlValidatorUtil. getRelOptTable(TableNamespace tableNamespace, Prepare.CatalogReader catalogReader, java.lang.String datasetName, boolean[] usedDataset, java.util.List<RelDataTypeField> extendedFields)
static java.util.Map<java.lang.String,java.lang.Integer>
SqlValidatorUtil. mapNameToIndex(java.util.List<RelDataTypeField> fields)
Returns a map from field names to indexes.Constructor parameters in org.apache.calcite.sql.validate with type arguments of type RelDataTypeField Constructor Description TableNamespace(SqlValidatorImpl validator, SqlValidatorTable table, java.util.List<RelDataTypeField> fields)
Creates a TableNamespace. -
Uses of RelDataTypeField in org.apache.calcite.sql2rel
Fields in org.apache.calcite.sql2rel with type parameters of type RelDataTypeField Modifier and Type Field Description private java.util.List<RelDataTypeField>
SqlToRelConverter.Blackboard. systemFieldList
Methods in org.apache.calcite.sql2rel that return RelDataTypeField Modifier and Type Method Description (package private) RelDataTypeField
SqlToRelConverter.Blackboard. getRootField(RexInputRef inputRef)
Methods in org.apache.calcite.sql2rel that return types with arguments of type RelDataTypeField Modifier and Type Method Description protected java.util.List<RelDataTypeField>
SqlToRelConverter. getSystemFields()
Returns a list of fields to be prefixed to each relational expression.Method parameters in org.apache.calcite.sql2rel with type arguments of type RelDataTypeField Modifier and Type Method Description protected RelFieldTrimmer.TrimResult
RelFieldTrimmer. dispatchTrimFields(RelNode rel, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
InvokesRelFieldTrimmer.trimFields(org.apache.calcite.rel.RelNode, org.apache.calcite.util.ImmutableBitSet, java.util.Set<org.apache.calcite.rel.type.RelDataTypeField>)
, or the appropriate method for the type of the rel parameter, using multi-method dispatch.private void
RelStructuredTypeFlattener. flattenInputs(java.util.List<RelDataTypeField> fieldList, RexNode prefix, java.util.List<Pair<RexNode,java.lang.String>> flattenedExpList)
Generates expressions that reference the flattened input fields from a given row type.protected RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimChild(RelNode rel, RelNode input, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Trims the fields of an input relational expression.protected RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimChildRestore(RelNode rel, RelNode input, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Trims a child relational expression, then adds back a dummy project to restore the fields that were removed.RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(Aggregate aggregate, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(Filter filter, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(Join join, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Variant ofRelFieldTrimmer.trimFields(RelNode, ImmutableBitSet, Set)
forLogicalJoin
.RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(Project project, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(SetOp setOp, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Variant ofRelFieldTrimmer.trimFields(RelNode, ImmutableBitSet, Set)
forSetOp
(including UNION and UNION ALL).RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(Sort sort, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Variant ofRelFieldTrimmer.trimFields(RelNode, ImmutableBitSet, Set)
forSort
.RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(TableScan tableAccessRel, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(LogicalTableFunctionScan tabFun, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(LogicalTableModify modifier, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(LogicalValues values, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(RelNode rel, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Visit method, perReflectiveVisitor
. -
Uses of RelDataTypeField in org.apache.calcite.tools
Methods in org.apache.calcite.tools that return types with arguments of type RelDataTypeField Modifier and Type Method Description (package private) java.util.List<RelDataTypeField>
RelBuilder.Frame. fields()
Constructors in org.apache.calcite.tools with parameters of type RelDataTypeField Constructor Description Field(com.google.common.collect.ImmutableSet<java.lang.String> left, RelDataTypeField right)
-