public class MetastoreUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static HiveColumnStatistics |
fromMetastoreApiColumnStatistics(org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj columnStatistics) |
static Database |
fromMetastoreApiDatabase(org.apache.hadoop.hive.metastore.api.Database database) |
static Partition |
fromMetastoreApiPartition(org.apache.hadoop.hive.metastore.api.Partition partition) |
static Table |
fromMetastoreApiTable(org.apache.hadoop.hive.metastore.api.Table table) |
static Properties |
getHiveSchema(Partition partition,
Table table) |
static Properties |
getHiveSchema(Table table) |
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 Set<HivePrivilegeInfo> |
toGrants(List<org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo> userGrants) |
static org.apache.hadoop.hive.metastore.api.Database |
toMetastoreApiDatabase(Database database) |
static org.apache.hadoop.hive.metastore.api.Partition |
toMetastoreApiPartition(Partition partition) |
static org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo |
toMetastoreApiPrivilegeGrantInfo(String grantee,
HivePrivilegeInfo privilegeInfo) |
static org.apache.hadoop.hive.metastore.api.Table |
toMetastoreApiTable(Table table,
PrincipalPrivileges privileges) |
static void |
verifyCanDropColumn(ExtendedHiveMetastore 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 org.apache.hadoop.hive.metastore.api.Database toMetastoreApiDatabase(Database database)
public static org.apache.hadoop.hive.metastore.api.Table toMetastoreApiTable(Table table, PrincipalPrivileges privileges)
public static org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo toMetastoreApiPrivilegeGrantInfo(String grantee, HivePrivilegeInfo privilegeInfo)
public static org.apache.hadoop.hive.metastore.api.Partition toMetastoreApiPartition(Partition partition)
public static Database fromMetastoreApiDatabase(org.apache.hadoop.hive.metastore.api.Database database)
public static Table fromMetastoreApiTable(org.apache.hadoop.hive.metastore.api.Table table)
public static Partition fromMetastoreApiPartition(org.apache.hadoop.hive.metastore.api.Partition partition)
public static HiveColumnStatistics fromMetastoreApiColumnStatistics(org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj columnStatistics)
public static Set<HivePrivilegeInfo> toGrants(List<org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo> userGrants)
public static void verifyOnline(SchemaTableName tableName, Optional<String> partitionName, org.apache.hadoop.hive.metastore.ProtectMode protectMode, Map<String,String> parameters)
public static void verifyCanDropColumn(ExtendedHiveMetastore metastore, String databaseName, String tableName, String columnName)
Copyright © 2012-2017. All Rights Reserved.