org.apache.hadoop.hive.ql
Class Driver

java.lang.Object
  extended by org.apache.hadoop.hive.ql.Driver
All Implemented Interfaces:
CommandProcessor

public class Driver
extends Object
implements CommandProcessor


Constructor Summary
Driver()
           
Driver(HiveConf conf)
          for backwards compatibility with current tests
 
Method Summary
 int close()
           
 int countJobs(List<Task<? extends Serializable>> tasks)
           
 int countJobs(List<Task<? extends Serializable>> tasks, List<Task<? extends Serializable>> seenTasks)
           
 int getMaxRows()
          Return the maximum number of rows returned by getResults
 boolean getResults(Vector<String> res)
           
 String getSchema()
          Return the Thrift DDL string of the result
 boolean hasReduceTasks(List<Task<? extends Serializable>> tasks)
           
 int run(String command)
           
 void setMaxRows(int maxRows)
          Set the maximum number of rows returned by getResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Driver

public Driver(HiveConf conf)
for backwards compatibility with current tests


Driver

public Driver()
Method Detail

countJobs

public int countJobs(List<Task<? extends Serializable>> tasks)

countJobs

public int countJobs(List<Task<? extends Serializable>> tasks,
                     List<Task<? extends Serializable>> seenTasks)

getSchema

public String getSchema()
                 throws Exception
Return the Thrift DDL string of the result

Throws:
Exception

getMaxRows

public int getMaxRows()
Return the maximum number of rows returned by getResults


setMaxRows

public void setMaxRows(int maxRows)
Set the maximum number of rows returned by getResults


hasReduceTasks

public boolean hasReduceTasks(List<Task<? extends Serializable>> tasks)

run

public int run(String command)
Specified by:
run in interface CommandProcessor

getResults

public boolean getResults(Vector<String> res)

close

public int close()


Copyright © 2009 The Apache Software Foundation