public static org.apache.hadoop.hive.metastore.api.Partition toMetastoreApiPartition( Partition partition) { org.apache.hadoop.hive.metastore.api.Partition result = new org.apache.hadoop.hive.metastore.api.Partition(); result.setDbName(partition.getDatabaseName()); result.setTableName(partition.getTableName()); result.setValues(partition.getValues()); result.setSd( makeStorageDescriptor( partition.getTableName(), partition.getColumns(), partition.getStorage())); result.setParameters(partition.getParameters()); return result; }
public static ProtectMode getProtectMode(Partition partition) { return getProtectMode(partition.getParameters()); }