public class HCatalogIOTestUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TEST_DATABASE |
static java.lang.String |
TEST_FILTER |
static int |
TEST_RECORDS_COUNT |
static java.lang.String |
TEST_TABLE |
Constructor and Description |
---|
HCatalogIOTestUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<org.apache.hive.hcatalog.data.HCatRecord> |
buildHCatRecords(int size)
Returns a list of HCatRecords of passed size.
|
static java.util.Map<java.lang.String,java.lang.String> |
getConfigPropertiesAsMap(org.apache.hadoop.hive.conf.HiveConf hiveConf)
Returns config params for the test datastore as a Map.
|
static java.util.List<java.lang.String> |
getExpectedRecords(int count)
Returns a list of strings containing 'expected' test data for verification.
|
static java.util.List<KV<java.lang.String,java.lang.Integer>> |
getExpectedRecordsAsKV(int count)
Returns a list of KV<String, Integer> containing 'expected' test data for verification.
|
static org.apache.hive.hcatalog.data.transfer.ReaderContext |
getReaderContext(java.util.Map<java.lang.String,java.lang.String> config)
Returns a ReaderContext instance for the passed datastore config params.
|
static void |
insertTestData(java.util.Map<java.lang.String,java.lang.String> configMap)
Inserts data into test datastore.
|
public static final java.lang.String TEST_DATABASE
public static final java.lang.String TEST_TABLE
public static final java.lang.String TEST_FILTER
public static final int TEST_RECORDS_COUNT
public static org.apache.hive.hcatalog.data.transfer.ReaderContext getReaderContext(java.util.Map<java.lang.String,java.lang.String> config) throws org.apache.hive.hcatalog.common.HCatException
org.apache.hive.hcatalog.common.HCatException
public static java.util.List<java.lang.String> getExpectedRecords(int count)
public static java.util.List<KV<java.lang.String,java.lang.Integer>> getExpectedRecordsAsKV(int count)
public static java.util.List<org.apache.hive.hcatalog.data.HCatRecord> buildHCatRecords(int size)
public static void insertTestData(java.util.Map<java.lang.String,java.lang.String> configMap) throws java.lang.Exception
java.lang.Exception
public static java.util.Map<java.lang.String,java.lang.String> getConfigPropertiesAsMap(org.apache.hadoop.hive.conf.HiveConf hiveConf)