org.apache.hadoop.hive.cli
Class CliDriver

java.lang.Object
  extended by org.apache.hadoop.hive.cli.CliDriver

public class CliDriver
extends Object

CliDriver.


Field Summary
static String HIVERCFILE
           
static int LINES_TO_FETCH
           
static String prompt
           
static String prompt2
           
 
Constructor Summary
CliDriver()
           
 
Method Summary
static jline.Completor[] getCommandCompletor()
           
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 allowInterupting)
          Processes a line of semicolon separated commands
 int processReader(BufferedReader r)
           
 void processSelectDatabase(CliSessionState ss)
           
static int run(String[] args)
           
 void setHiveVariables(Map<String,String> hiveVariables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CliDriver

public CliDriver()
Method Detail

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 process
allowInterupting - 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