Class SqlValidatorImpl.Permute

  • Enclosing class:
    SqlValidatorImpl

    private class SqlValidatorImpl.Permute
    extends java.lang.Object
    Permutation of fields in NATURAL JOIN or USING.
    • Constructor Summary

      Constructors 
      Constructor Description
      Permute​(SqlNode from, int offset)  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Permute

        Permute​(SqlNode from,
                int offset)
    • Method Detail

      • 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.