org.apache.hive.cli.beeline
Class Commands

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

public class Commands
extends Object


Method Summary
 boolean all(String line)
           
 boolean autocommit(String line)
           
 boolean batch(String line)
           
 boolean brief(String line)
           
 boolean call(String line)
           
 boolean close(String line)
          Close the current connection.
 boolean closeall(String line)
          Close all connections.
 boolean columns(String line)
           
 boolean commit(String line)
           
 boolean config(String line)
           
 boolean connect(Properties props)
           
 boolean connect(String line)
           
 boolean dbinfo(String line)
           
 boolean describe(String line)
           
 boolean dropall(String line)
           
 boolean exportedkeys(String line)
           
 boolean go(String line)
           
 boolean help(String line)
           
 boolean history(String line)
           
 boolean importedkeys(String line)
           
 boolean indexes(String line)
           
 boolean isolation(String line)
           
 boolean list(String line)
          List the current connections
 boolean load(String line)
           
 boolean manual(String line)
           
 boolean metadata(String line)
           
 boolean metadata(String cmd, String[] args)
           
 boolean nativesql(String sql)
           
 boolean outputformat(String line)
           
 boolean primarykeys(String line)
           
 boolean procedures(String line)
           
 boolean properties(String line)
          Connect to the database defined in the specified properties file.
 boolean quit(String line)
           
 boolean reconnect(String line)
           
 boolean record(String line)
          Save or stop saving all output to a file.
 boolean rehash(String line)
           
 boolean rollback(String line)
           
 boolean run(String line)
          Run a script from the specified file.
 boolean save(String line)
           
 boolean scan(String line)
           
 boolean script(String line)
          Save or stop saving a script to a file
 boolean set(String line)
           
 boolean sql(String line)
           
 boolean tables(String line)
           
 boolean typeinfo(String line)
           
 boolean verbose(String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

metadata

public boolean metadata(String line)

metadata

public boolean metadata(String cmd,
                        String[] args)

history

public boolean history(String line)

indexes

public boolean indexes(String line)
                throws Exception
Throws:
Exception

primarykeys

public boolean primarykeys(String line)
                    throws Exception
Throws:
Exception

exportedkeys

public boolean exportedkeys(String line)
                     throws Exception
Throws:
Exception

importedkeys

public boolean importedkeys(String line)
                     throws Exception
Throws:
Exception

procedures

public boolean procedures(String line)
                   throws Exception
Throws:
Exception

tables

public boolean tables(String line)
               throws Exception
Throws:
Exception

typeinfo

public boolean typeinfo(String line)
                 throws Exception
Throws:
Exception

nativesql

public boolean nativesql(String sql)
                  throws Exception
Throws:
Exception

columns

public boolean columns(String line)
                throws Exception
Throws:
Exception

dropall

public boolean dropall(String line)

reconnect

public boolean reconnect(String line)

scan

public boolean scan(String line)
             throws IOException
Throws:
IOException

save

public boolean save(String line)
             throws IOException
Throws:
IOException

load

public boolean load(String line)
             throws IOException
Throws:
IOException

config

public boolean config(String line)

set

public boolean set(String line)

commit

public boolean commit(String line)
               throws SQLException
Throws:
SQLException

rollback

public boolean rollback(String line)
                 throws SQLException
Throws:
SQLException

autocommit

public boolean autocommit(String line)
                   throws SQLException
Throws:
SQLException

dbinfo

public boolean dbinfo(String line)

verbose

public boolean verbose(String line)

outputformat

public boolean outputformat(String line)

brief

public boolean brief(String line)

isolation

public boolean isolation(String line)
                  throws SQLException
Throws:
SQLException

batch

public boolean batch(String line)

sql

public boolean sql(String line)

call

public boolean call(String line)

quit

public boolean quit(String line)

closeall

public boolean closeall(String line)
Close all connections.


close

public boolean close(String line)
Close the current connection.


properties

public boolean properties(String line)
                   throws Exception
Connect to the database defined in the specified properties file.

Throws:
Exception

connect

public boolean connect(String line)
                throws Exception
Throws:
Exception

connect

public boolean connect(Properties props)
                throws IOException
Throws:
IOException

rehash

public boolean rehash(String line)

list

public boolean list(String line)
List the current connections


all

public boolean all(String line)

go

public boolean go(String line)

script

public boolean script(String line)
Save or stop saving a script to a file


run

public boolean run(String line)
Run a script from the specified file.


record

public boolean record(String line)
Save or stop saving all output to a file.


describe

public boolean describe(String line)
                 throws SQLException
Throws:
SQLException

help

public boolean help(String line)

manual

public boolean manual(String line)
               throws IOException
Throws:
IOException


Copyright © 2013 The Apache Software Foundation