Class CalciteHandler


  • class CalciteHandler
    extends org.apache.calcite.piglet.Handler
    Extension to Handler that can execute commands using Calcite.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.PrintWriter writer  
    • Constructor Summary

      Constructors 
      Constructor Description
      CalciteHandler​(org.apache.calcite.tools.PigRelBuilder builder, java.io.Writer writer)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static void dump​(java.sql.ResultSet resultSet, boolean newline, java.io.PrintWriter writer)  
      protected void dump​(org.apache.calcite.rel.RelNode rel)  
      static void dump​(org.apache.calcite.rel.RelNode rel, java.io.Writer writer)  
      private static void dumpColumn​(java.sql.ResultSet resultSet, int i, java.io.PrintWriter writer)
      Dumps a column value.
      • Methods inherited from class org.apache.calcite.piglet.Handler

        handle
      • Methods inherited from class java.lang.Object

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

      • writer

        private final java.io.PrintWriter writer
    • Constructor Detail

      • CalciteHandler

        CalciteHandler​(org.apache.calcite.tools.PigRelBuilder builder,
                       java.io.Writer writer)
    • Method Detail

      • dump

        protected void dump​(org.apache.calcite.rel.RelNode rel)
        Overrides:
        dump in class org.apache.calcite.piglet.Handler
      • dump

        public static void dump​(org.apache.calcite.rel.RelNode rel,
                                java.io.Writer writer)
      • dump

        private static void dump​(java.sql.ResultSet resultSet,
                                 boolean newline,
                                 java.io.PrintWriter writer)
                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • dumpColumn

        private static void dumpColumn​(java.sql.ResultSet resultSet,
                                       int i,
                                       java.io.PrintWriter writer)
                                throws java.sql.SQLException
        Dumps a column value.
        Parameters:
        i - Column ordinal, 1-based
        Throws:
        java.sql.SQLException