org.apache.hadoop.hive.metastore
Class TestHiveMetaStore

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.hadoop.hive.metastore.TestHiveMetaStore
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestEmbeddedHiveMetaStore, TestRemoteHiveMetaStore

public abstract class TestHiveMetaStore
extends junit.framework.TestCase


Field Summary
protected static HiveMetaStoreClient client
           
protected static HiveConf hiveConf
           
protected static boolean isThriftClient
           
protected static Warehouse warehouse
           
 
Constructor Summary
TestHiveMetaStore()
           
 
Method Summary
static void partitionTester(HiveMetaStoreClient client, HiveConf hiveConf)
           
protected  void setUp()
           
 void testAlterPartition()
           
 void testAlterTable()
           
 void testComplexTable()
           
 void testComplexTypeApi()
           
 void testDatabase()
           
 void testDatabaseLocation()
           
 void testFilterLastPartition()
          Test filtering based on the value of the last partition
 void testFilterSinglePartition()
          Test filtering on table with single partition
 void testGetConfigValue()
           
 void testNameMethods()
           
 void testPartition()
          tests create table and partition and tries to drop the table without droppping the partition
 void testPartitionFilter()
          Tests for list partition by filter functionality.
 void testRenamePartition()
           
 void testSimpleTable()
           
 void testSimpleTypeApi()
           
 void testSynchronized()
          Tests HiveMetaStoreClient.newSynchronizedClient(org.apache.hadoop.hive.metastore.IMetaStoreClient).
 void testTableDatabase()
           
 void testTableFilter()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

client

protected static HiveMetaStoreClient client

hiveConf

protected static HiveConf hiveConf

warehouse

protected static Warehouse warehouse

isThriftClient

protected static boolean isThriftClient
Constructor Detail

TestHiveMetaStore

public TestHiveMetaStore()
Method Detail

setUp

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

testNameMethods

public void testNameMethods()

testPartition

public void testPartition()
                   throws Exception
tests create table and partition and tries to drop the table without droppping the partition

Throws:
Exception

partitionTester

public static void partitionTester(HiveMetaStoreClient client,
                                   HiveConf hiveConf)
                            throws Exception
Throws:
Exception

testAlterPartition

public void testAlterPartition()
                        throws Throwable
Throws:
Throwable

testRenamePartition

public void testRenamePartition()
                         throws Throwable
Throws:
Throwable

testDatabase

public void testDatabase()
                  throws Throwable
Throws:
Throwable

testDatabaseLocation

public void testDatabaseLocation()
                          throws Throwable
Throws:
Throwable

testSimpleTypeApi

public void testSimpleTypeApi()
                       throws Exception
Throws:
Exception

testComplexTypeApi

public void testComplexTypeApi()
                        throws Exception
Throws:
Exception

testSimpleTable

public void testSimpleTable()
                     throws Exception
Throws:
Exception

testAlterTable

public void testAlterTable()
                    throws Exception
Throws:
Exception

testComplexTable

public void testComplexTable()
                      throws Exception
Throws:
Exception

testTableDatabase

public void testTableDatabase()
                       throws Exception
Throws:
Exception

testGetConfigValue

public void testGetConfigValue()

testPartitionFilter

public void testPartitionFilter()
                         throws Exception
Tests for list partition by filter functionality.

Throws:
Exception

testFilterSinglePartition

public void testFilterSinglePartition()
                               throws Exception
Test filtering on table with single partition

Throws:
Exception

testFilterLastPartition

public void testFilterLastPartition()
                             throws Exception
Test filtering based on the value of the last partition

Throws:
Exception

testSynchronized

public void testSynchronized()
                      throws Exception
Tests HiveMetaStoreClient.newSynchronizedClient(org.apache.hadoop.hive.metastore.IMetaStoreClient). Does not actually test multithreading, but does verify that the proxy at least works correctly.

Throws:
Exception

testTableFilter

public void testTableFilter()
                     throws Exception
Throws:
Exception


Copyright © 2011 The Apache Software Foundation