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 Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void dump​(java.sql.ResultSet resultSet, boolean newline)  
      protected void dump​(org.apache.calcite.rel.RelNode rel)  
      private void dumpColumn​(java.sql.ResultSet resultSet, int i)
      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

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

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