org.apache.hadoop.hive.metastore
Class TestHiveMetaStore
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
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
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 |
client
protected static HiveMetaStoreClient client
hiveConf
protected static HiveConf hiveConf
warehouse
protected static Warehouse warehouse
isThriftClient
protected static boolean isThriftClient
TestHiveMetaStore
public TestHiveMetaStore()
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
testDatabase
public void testDatabase()
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
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
Copyright © 2011 The Apache Software Foundation