org.apache.hive.cli.beeline
Class BeeLine

java.lang.Object
  extended by org.apache.hive.cli.beeline.BeeLine

public class BeeLine
extends Object

A console SQL shell with command completion.

TODO:


Field Summary
static String BEELINE_DEFAULT_JDBC_DRIVER
           
static String BEELINE_DEFAULT_JDBC_URL
           
static String COMMAND_PREFIX
           
 
Constructor Summary
BeeLine()
           
 
Method Summary
 void close()
           
 String[] getConnectionURLExamples()
           
 jline.ConsoleReader getConsoleReader(InputStream inputStream)
           
 String[] getIsolationLevels()
           
 String[] getMetadataMethodNames()
           
protected  org.apache.hive.cli.beeline.Reflector getReflector()
           
static String getSeparator()
           
 boolean isExit()
           
protected  String locElapsedTime(long milliseconds)
           
static void main(String[] args)
          Starts the program.
static void mainWithInputRedirection(String[] args, InputStream inputStream)
          Starts the program with redirected input.
 int runCommands(List<String> cmds)
           
 int runCommands(String[] cmds)
           
 void setErrorStream(PrintStream errorStream)
           
 void setExit(boolean exit)
           
 void setOutputStream(PrintStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_PREFIX

public static final String COMMAND_PREFIX
See Also:
Constant Field Values

BEELINE_DEFAULT_JDBC_DRIVER

public static final String BEELINE_DEFAULT_JDBC_DRIVER
See Also:
Constant Field Values

BEELINE_DEFAULT_JDBC_URL

public static final String BEELINE_DEFAULT_JDBC_URL
See Also:
Constant Field Values
Constructor Detail

BeeLine

public BeeLine()
Method Detail

locElapsedTime

protected String locElapsedTime(long milliseconds)

main

public static void main(String[] args)
                 throws IOException
Starts the program.

Throws:
IOException

mainWithInputRedirection

public static void mainWithInputRedirection(String[] args,
                                            InputStream inputStream)
                                     throws IOException
Starts the program with redirected input. For redirected output, setOutputStream() and setErrorStream can be used.

Parameters:
args - same as main()
inputStream - redirected input, or null to use standard input
Throws:
IOException

getIsolationLevels

public String[] getIsolationLevels()

getMetadataMethodNames

public String[] getMetadataMethodNames()

getConnectionURLExamples

public String[] getConnectionURLExamples()

close

public void close()

getConsoleReader

public jline.ConsoleReader getConsoleReader(InputStream inputStream)
                                     throws IOException
Throws:
IOException

runCommands

public int runCommands(String[] cmds)

runCommands

public int runCommands(List<String> cmds)

isExit

public boolean isExit()

setExit

public void setExit(boolean exit)

getSeparator

public static String getSeparator()

setOutputStream

public void setOutputStream(PrintStream outputStream)

setErrorStream

public void setErrorStream(PrintStream errorStream)

getReflector

protected org.apache.hive.cli.beeline.Reflector getReflector()


Copyright © 2013 The Apache Software Foundation