public class CliDriver extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DELIMITED_CANDIDATE_THRESHOLD |
static String |
HIVERCFILE |
static int |
LINES_TO_FETCH |
static String |
prompt |
static String |
prompt2 |
protected jline.console.ConsoleReader |
reader |
Constructor and Description |
---|
CliDriver() |
Modifier and Type | Method and Description |
---|---|
static jline.console.completer.Completer[] |
getCommandCompleter() |
static void |
main(String[] args) |
int |
processCmd(String cmd) |
int |
processFile(String fileName) |
void |
processInitFiles(CliSessionState ss) |
int |
processLine(String line) |
int |
processLine(String line,
boolean allowInterrupting)
Processes a line of semicolon separated commands
|
int |
processReader(BufferedReader r) |
void |
processSelectDatabase(CliSessionState ss) |
int |
run(String[] args) |
void |
setHiveVariables(Map<String,String> hiveVariables) |
protected void |
setupConsoleReader() |
public static String prompt
public static String prompt2
public static final int LINES_TO_FETCH
public static final int DELIMITED_CANDIDATE_THRESHOLD
public static final String HIVERCFILE
protected jline.console.ConsoleReader reader
public int processCmd(String cmd)
public int processLine(String line)
public int processLine(String line, boolean allowInterrupting)
line
- The commands to processallowInterrupting
- When true the function will handle SIG_INT (Ctrl+C) by interrupting the processing and
returning -1public int processReader(BufferedReader r) throws IOException
IOException
public int processFile(String fileName) throws IOException
IOException
public void processInitFiles(CliSessionState ss) throws IOException
IOException
public void processSelectDatabase(CliSessionState ss) throws IOException
IOException
public static jline.console.completer.Completer[] getCommandCompleter()
protected void setupConsoleReader() throws IOException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.