public final class MetastoreUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static PrincipalPrivileges |
buildInitialPrivilegeSet(String tableOwner) |
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 boolean |
isAvroTableWithSchemaSet(Table table) |
static String |
makePartitionName(List<Column> partitionColumns,
List<String> values) |
static String |
makePartitionName(Table table,
Partition partition) |
static String |
toPartitionName(List<String> names,
List<String> values) |
static void |
verifyCanDropColumn(HiveMetastore metastore,
HiveIdentity identity,
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 boolean isAvroTableWithSchemaSet(Table table)
public static String makePartitionName(List<Column> partitionColumns, List<String> values)
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, HiveIdentity identity, String databaseName, String tableName, String columnName)
public static PrincipalPrivileges buildInitialPrivilegeSet(String tableOwner)
Copyright © 2012–2020. All rights reserved.