org.apache.hive.cli.beeline.util
Class QFileClient

java.lang.Object
  extended by org.apache.hive.cli.beeline.util.QFileClient

public class QFileClient
extends Object

QTestClient.


Constructor Summary
QFileClient(HiveConf hiveConf, String hiveRootDirectory, String qFileDirectory, String outputDirectory, String expectedDirectory)
           
 
Method Summary
 void cleanup()
           
 boolean compareResults()
           
 boolean hasErrors()
           
 boolean hasExpectedResults()
          Does the test have a file with expected results to compare the log against.
 void overwriteResults()
           
 void run()
           
 QFileClient setExpectedDirectory(String expectedDirectory)
           
 QFileClient setJdbcDriver(String jdbcDriver)
           
 QFileClient setJdbcUrl(String jdbcUrl)
           
 QFileClient setOutputDirectory(String outputDirectory)
           
 QFileClient setPassword(String password)
           
 QFileClient setQFileDirectory(String qFileDirectory)
           
 QFileClient setQFileName(String qFileName)
           
 QFileClient setTestDataDirectory(String testDataDirectory)
           
 QFileClient setTestScriptDirectory(String testScriptDirectory)
           
 QFileClient setUsername(String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QFileClient

public QFileClient(HiveConf hiveConf,
                   String hiveRootDirectory,
                   String qFileDirectory,
                   String outputDirectory,
                   String expectedDirectory)
Method Detail

setUsername

public QFileClient setUsername(String username)

setPassword

public QFileClient setPassword(String password)

setJdbcUrl

public QFileClient setJdbcUrl(String jdbcUrl)

setJdbcDriver

public QFileClient setJdbcDriver(String jdbcDriver)

setQFileName

public QFileClient setQFileName(String qFileName)

setQFileDirectory

public QFileClient setQFileDirectory(String qFileDirectory)

setOutputDirectory

public QFileClient setOutputDirectory(String outputDirectory)

setExpectedDirectory

public QFileClient setExpectedDirectory(String expectedDirectory)

setTestDataDirectory

public QFileClient setTestDataDirectory(String testDataDirectory)

setTestScriptDirectory

public QFileClient setTestScriptDirectory(String testScriptDirectory)

hasErrors

public boolean hasErrors()

cleanup

public void cleanup()

run

public void run()
         throws Exception
Throws:
Exception

hasExpectedResults

public boolean hasExpectedResults()
Does the test have a file with expected results to compare the log against. False probably indicates that this is a new test and the caller should copy the log to the expected results directory.

Returns:

compareResults

public boolean compareResults()
                       throws IOException
Throws:
IOException

overwriteResults

public void overwriteResults()


Copyright © 2013 The Apache Software Foundation