public class BeeLine extends Object implements Closeable
TODO:
Modifier and Type | Class and Description |
---|---|
class |
BeeLine.BeelineParser |
Modifier and Type | Field and Description |
---|---|
static String |
BEELINE_DEFAULT_JDBC_DRIVER |
static String |
BEELINE_DEFAULT_JDBC_URL |
static String |
COMMAND_PREFIX |
Constructor and Description |
---|
BeeLine() |
Modifier and Type | Method and Description |
---|---|
void |
addLocalDriverClazz(String driverClazz) |
int |
begin(String[] args,
InputStream inputStream)
Start accepting input from stdin, and dispatch it
to the appropriate
CommandHandler until the
global variable exit is true. |
void |
close() |
Driver |
findLocalDriver(String url) |
String[] |
getConnectionURLExamples() |
jline.console.ConsoleReader |
getConsoleReader(InputStream inputStream) |
String[] |
getIsolationLevels() |
String[] |
getMetadataMethodNames() |
org.apache.hive.beeline.BeeLineOpts |
getOpts() |
protected org.apache.hive.beeline.Reflector |
getReflector() |
static String |
getSeparator() |
boolean |
isExit() |
boolean |
isSupportedLocalDriver(Driver driver) |
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) |
public static final String COMMAND_PREFIX
public static final String BEELINE_DEFAULT_JDBC_DRIVER
public static final String BEELINE_DEFAULT_JDBC_URL
protected String locElapsedTime(long milliseconds)
public static void main(String[] args) throws IOException
IOException
public static void mainWithInputRedirection(String[] args, InputStream inputStream) throws IOException
args
- same as main()inputStream
- redirected input, or null to use standard inputIOException
public String[] getIsolationLevels()
public String[] getMetadataMethodNames()
public String[] getConnectionURLExamples()
public int begin(String[] args, InputStream inputStream) throws IOException
CommandHandler
until the
global variable exit
is true.IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public jline.console.ConsoleReader getConsoleReader(InputStream inputStream) throws IOException
IOException
public boolean isSupportedLocalDriver(Driver driver)
public void addLocalDriverClazz(String driverClazz)
public int runCommands(String[] cmds)
public org.apache.hive.beeline.BeeLineOpts getOpts()
public boolean isExit()
public void setExit(boolean exit)
public static String getSeparator()
public void setOutputStream(PrintStream outputStream)
public void setErrorStream(PrintStream errorStream)
protected org.apache.hive.beeline.Reflector getReflector()
Copyright © 2017 The Apache Software Foundation. All rights reserved.