Package org.apache.calcite.sql.validate
Class SqlValidatorImpl.Permute
- java.lang.Object
-
- org.apache.calcite.sql.validate.SqlValidatorImpl.Permute
-
- Enclosing class:
- SqlValidatorImpl
private class SqlValidatorImpl.Permute extends java.lang.Object
Permutation of fields in NATURAL JOIN or USING.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) RelDataType
rowType
(package private) java.util.List<ImmutableIntList>
sources
(package private) boolean
trivial
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private RelDataTypeField
field(java.lang.String name)
void
permute(java.util.List<SqlNode> selectItems, java.util.List<java.util.Map.Entry<java.lang.String,RelDataType>> fields)
Moves fields according to the permutation.private java.util.List<java.lang.String>
usingNames(SqlJoin join)
Returns the set of field names in the join condition specified by USING or implicitly by NATURAL, de-duplicated and in order.
-
-
-
Field Detail
-
sources
final java.util.List<ImmutableIntList> sources
-
rowType
final RelDataType rowType
-
trivial
final boolean trivial
-
-
Constructor Detail
-
Permute
Permute(SqlNode from, int offset)
-
-
Method Detail
-
field
private RelDataTypeField field(java.lang.String name)
-
usingNames
private java.util.List<java.lang.String> usingNames(SqlJoin join)
Returns the set of field names in the join condition specified by USING or implicitly by NATURAL, de-duplicated and in order.
-
permute
public void permute(java.util.List<SqlNode> selectItems, java.util.List<java.util.Map.Entry<java.lang.String,RelDataType>> fields)
Moves fields according to the permutation.
-
-