Class SqlShell

  • public class SqlShell
    extends java.lang.Object
    Command that executes its arguments as a SQL query against Calcite's OS adapter.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  SqlShell.Format
      Output format.
    • Field Summary

      Modifier and Type Field Description
      private java.util.List<java.lang.String> args  
      private err  
      private in  
      (package private) static java.lang.String MODEL  
      private out  
    • Constructor Summary

      Constructor Description
      SqlShell​( in, out, err, java.lang.String... args)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static void addFunction​(java.lang.StringBuilder b, java.lang.String name, java.lang.Class c)  
      private static void addView​(java.lang.StringBuilder b, java.lang.String name, java.lang.String sql)  
      static void main​(java.lang.String[] args)
      Main entry point.
      private static java.lang.String model()  
      (package private) void run()  
      • Methods inherited from class java.lang.Object

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

      • MODEL

        static final java.lang.String MODEL
      • args

        private final java.util.List<java.lang.String> args
      • in

        private final in
      • out

        private final out
      • err

        private final err
    • Constructor Detail

      • SqlShell

        SqlShell​( in,
                 java.lang.String... args)
    • Method Detail

      • model

        private static java.lang.String model()
      • main

        public static void main​(java.lang.String[] args)
        Main entry point.
      • run

        void run()
          throws java.sql.SQLException
      • addView

        private static void addView​(java.lang.StringBuilder b,
                                    java.lang.String name,
                                    java.lang.String sql)
      • addFunction

        private static void addFunction​(java.lang.StringBuilder b,
                                        java.lang.String name,
                                        java.lang.Class c)