org.apache.hadoop.hive.ql.metadata
Class TestHive

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.hadoop.hive.ql.metadata.TestHive
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestHiveRemote

public class TestHive
extends junit.framework.TestCase

TestHive.


Field Summary
protected  HiveConf hiveConf
           
protected  Hive hm
           
 
Constructor Summary
TestHive()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testGetAndDropTables()
           
 void testHiveCloseCurrent()
          Test basic Hive class interaction, that: - We can have different Hive objects throughout the lifetime of this thread.
 void testHiveRefreshDatabase()
           
 void testIndex()
          Tests creating a simple index on a simple table.
 void testPartition()
           
 void testTable()
           
 void testThriftTable()
          Tests create and fetch of a thrift based table.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hm

protected Hive hm

hiveConf

protected HiveConf hiveConf
Constructor Detail

TestHive

public TestHive()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testTable

public void testTable()
               throws Throwable
Throws:
Throwable

testThriftTable

public void testThriftTable()
                     throws Throwable
Tests create and fetch of a thrift based table.

Throws:
Throwable

testHiveCloseCurrent

public void testHiveCloseCurrent()
                          throws Throwable
Test basic Hive class interaction, that: - We can have different Hive objects throughout the lifetime of this thread.

Throws:
Throwable

testGetAndDropTables

public void testGetAndDropTables()
                          throws Throwable
Throws:
Throwable

testPartition

public void testPartition()
                   throws Throwable
Throws:
Throwable

testIndex

public void testIndex()
               throws Throwable
Tests creating a simple index on a simple table.

Throws:
Throwable

testHiveRefreshDatabase

public void testHiveRefreshDatabase()
                             throws Throwable
Throws:
Throwable


Copyright © 2013 The Apache Software Foundation