org.apache.hadoop.hive.cli
Class CliDriver
java.lang.Object
org.apache.hadoop.hive.cli.CliDriver
public class CliDriver
- extends Object
CliDriver.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prompt
public static String prompt
prompt2
public static String prompt2
LINES_TO_FETCH
public static final int LINES_TO_FETCH
- See Also:
- Constant Field Values
HIVERCFILE
public static final String HIVERCFILE
- See Also:
- Constant Field Values
CliDriver
public CliDriver()
processCmd
public int processCmd(String cmd)
processLine
public int processLine(String line)
processLine
public int processLine(String line,
boolean allowInterupting)
- Processes a line of semicolon separated commands
- Parameters:
line
- The commands to processallowInterupting
- When true the function will handle SIG_INT (Ctrl+C) by interrupting the processing and
returning -1
- Returns:
- 0 if ok
processReader
public int processReader(BufferedReader r)
throws IOException
- Throws:
IOException
processFile
public int processFile(String fileName)
throws IOException
- Throws:
IOException
processInitFiles
public void processInitFiles(CliSessionState ss)
throws IOException
- Throws:
IOException
processSelectDatabase
public void processSelectDatabase(CliSessionState ss)
throws IOException
- Throws:
IOException
getCommandCompletor
public static jline.Completor[] getCommandCompletor()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
run
public static int run(String[] args)
throws Exception
- Throws:
Exception
setHiveVariables
public void setHiveVariables(Map<String,String> hiveVariables)
Copyright © 2013 The Apache Software Foundation