public class MetastoreUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getHiveSchema(Partition partition,
Table table) |
static Properties |
getHiveSchema(Table table) |
static String |
getPartitionLocation(Table table,
Optional<Partition> partition) |
static org.apache.hadoop.hive.metastore.ProtectMode |
getProtectMode(Partition partition) |
static org.apache.hadoop.hive.metastore.ProtectMode |
getProtectMode(Table table) |
static String |
makePartName(List<Column> partitionColumns,
List<String> values) |
static void |
verifyCanDropColumn(HiveMetastore metastore,
String databaseName,
String tableName,
String columnName) |
static void |
verifyOnline(SchemaTableName tableName,
Optional<String> partitionName,
org.apache.hadoop.hive.metastore.ProtectMode protectMode,
Map<String,String> parameters) |
public static Properties getHiveSchema(Table table)
public static Properties getHiveSchema(Partition partition, Table table)
public static org.apache.hadoop.hive.metastore.ProtectMode getProtectMode(Partition partition)
public static org.apache.hadoop.hive.metastore.ProtectMode getProtectMode(Table table)
public static String getPartitionLocation(Table table, Optional<Partition> partition)
public static void verifyOnline(SchemaTableName tableName, Optional<String> partitionName, org.apache.hadoop.hive.metastore.ProtectMode protectMode, Map<String,String> parameters)
public static void verifyCanDropColumn(HiveMetastore metastore, String databaseName, String tableName, String columnName)
Copyright © 2012–2019. All rights reserved.