public String[] getMetadataMethodNames() {
    try {
      TreeSet<String> mnames = new TreeSet<String>();
      Method[] m = DatabaseMetaData.class.getDeclaredMethods();
      for (int i = 0; m != null && i < m.length; i++) {
        mnames.add(m[i].getName());
      }
      return mnames.toArray(new String[0]);
    } catch (Throwable t) {
      return new String[0];
    }
  }
Starts the program with redirected input. For redirected output,
setOutputStream() and setErrorStream can be used.
Exits with 0 on success, 1 on invalid arguments, and 2 on any other error

@param args
         same as main()

@param inputStream
         redirected input, or null to use standard input
beeline/src/java/org/apache/hive/beeline/BeeLine.java