本文整理了Java中org.apache.hadoop.hive.metastore.api.Partition.unsetPrivileges()
方法的一些代码示例,展示了Partition.unsetPrivileges()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Partition.unsetPrivileges()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Partition
类名称:Partition
方法名:unsetPrivileges
暂无
代码示例来源:origin: apache/hive
@Override
public boolean getPartitionsByExpr(String catName, String dbName, String tblName, byte[] expr,
String defaultPartitionName, short maxParts, List<Partition> result) throws TException {
catName = StringUtils.normalizeIdentifier(catName);
dbName = StringUtils.normalizeIdentifier(dbName);
tblName = StringUtils.normalizeIdentifier(tblName);
if (!shouldCacheTable(catName, dbName, tblName) || (canUseEvents && rawStore.isActiveTransaction())) {
return rawStore.getPartitionsByExpr(catName, dbName, tblName, expr, defaultPartitionName, maxParts, result);
}
List<String> partNames = new LinkedList<>();
Table table = sharedCache.getTableFromCache(catName, dbName, tblName);
if (table == null) {
// The table is not yet loaded in cache
return rawStore.getPartitionsByExpr(catName, dbName, tblName, expr, defaultPartitionName, maxParts, result);
}
boolean hasUnknownPartitions =
getPartitionNamesPrunedByExprNoTxn(table, expr, defaultPartitionName, maxParts, partNames, sharedCache);
for (String partName : partNames) {
Partition part = sharedCache.getPartitionFromCache(catName, dbName, tblName, partNameToVals(partName));
part.unsetPrivileges();
result.add(part);
}
return hasUnknownPartitions;
}
代码示例来源:origin: apache/hive
unsetPrivileges();
} else {
setPrivileges((PrincipalPrivilegeSet)value);
代码示例来源:origin: org.spark-project.hive/hive-metastore
unsetPrivileges();
} else {
setPrivileges((PrincipalPrivilegeSet)value);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
unsetPrivileges();
} else {
setPrivileges((PrincipalPrivilegeSet)value);
代码示例来源:origin: org.apache.hadoop.hive/hive-metastore
unsetPrivileges();
} else {
setPrivileges((PrincipalPrivilegeSet)value);
内容来源于网络,如有侵权,请联系作者删除!