public final class HiveDynamoDBUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
extractHiveTypeMapping(org.apache.hadoop.mapred.JobConf jobConf)
Extracts column to type mapping for the hive table from the job configuration It uses 2
standard Hive Job parameters: LIST_COLUMNS ("columns") and LIST_COLUMN_TYPES
LIST_COLUMN_TYPES ("columns.types").
|
static Map<String,String> |
fromJsonString(String jsonString) |
static String |
getDynamoDBTableName(String tablePropertyDefinedTableName,
String hiveTableName) |
static Map<String,String> |
getHiveToDynamoDBColumnMapping(Properties props) |
static Map<String,String> |
getHiveToDynamoDBMapping(String mapping)
Please note that this method converts the hive column names (map keys) to lower case for
consistency with other Hive code
|
static boolean |
getHiveToDynamoDBNullSerialization(Properties tbl) |
static Map<String,HiveDynamoDBType> |
getHiveToDynamoDBTypeMapping(List<String> columnNames,
List<org.apache.hadoop.hive.serde2.typeinfo.TypeInfo> columnTypes,
Properties props) |
static String |
toJsonString(Map<String,String> dynamoDBTypeMapping) |
public static String getDynamoDBTableName(String tablePropertyDefinedTableName, String hiveTableName)
public static Map<String,String> getHiveToDynamoDBColumnMapping(Properties props)
public static Map<String,HiveDynamoDBType> getHiveToDynamoDBTypeMapping(List<String> columnNames, List<org.apache.hadoop.hive.serde2.typeinfo.TypeInfo> columnTypes, Properties props)
public static boolean getHiveToDynamoDBNullSerialization(Properties tbl)
public static Map<String,String> getHiveToDynamoDBMapping(String mapping)
public static Map<String,String> extractHiveTypeMapping(org.apache.hadoop.mapred.JobConf jobConf)
jobConf - a job configurationserdeConstants.LIST_COLUMNS,
serdeConstants.LIST_COLUMN_TYPESCopyright © 2021. All rights reserved.