本文整理了Java中org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege.setHiveObjectIsSet()
方法的一些代码示例,展示了HiveObjectPrivilege.setHiveObjectIsSet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HiveObjectPrivilege.setHiveObjectIsSet()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege
类名称:HiveObjectPrivilege
方法名:setHiveObjectIsSet
暂无
代码示例来源:origin: apache/hive
struct.hiveObject = new HiveObjectRef();
struct.hiveObject.read(iprot);
struct.setHiveObjectIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
代码示例来源:origin: apache/hive
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectPrivilege struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
struct.hiveObject = new HiveObjectRef();
struct.hiveObject.read(iprot);
struct.setHiveObjectIsSet(true);
}
if (incoming.get(1)) {
struct.principalName = iprot.readString();
struct.setPrincipalNameIsSet(true);
}
if (incoming.get(2)) {
struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32());
struct.setPrincipalTypeIsSet(true);
}
if (incoming.get(3)) {
struct.grantInfo = new PrivilegeGrantInfo();
struct.grantInfo.read(iprot);
struct.setGrantInfoIsSet(true);
}
if (incoming.get(4)) {
struct.authorizer = iprot.readString();
struct.setAuthorizerIsSet(true);
}
}
}
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
struct.hiveObject = new HiveObjectRef();
struct.hiveObject.read(iprot);
struct.setHiveObjectIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
struct.hiveObject = new HiveObjectRef();
struct.hiveObject.read(iprot);
struct.setHiveObjectIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
代码示例来源:origin: org.spark-project.hive/hive-metastore
struct.hiveObject = new HiveObjectRef();
struct.hiveObject.read(iprot);
struct.setHiveObjectIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectPrivilege struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.hiveObject = new HiveObjectRef();
struct.hiveObject.read(iprot);
struct.setHiveObjectIsSet(true);
}
if (incoming.get(1)) {
struct.principalName = iprot.readString();
struct.setPrincipalNameIsSet(true);
}
if (incoming.get(2)) {
struct.principalType = PrincipalType.findByValue(iprot.readI32());
struct.setPrincipalTypeIsSet(true);
}
if (incoming.get(3)) {
struct.grantInfo = new PrivilegeGrantInfo();
struct.grantInfo.read(iprot);
struct.setGrantInfoIsSet(true);
}
}
}
代码示例来源:origin: org.spark-project.hive/hive-metastore
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectPrivilege struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.hiveObject = new HiveObjectRef();
struct.hiveObject.read(iprot);
struct.setHiveObjectIsSet(true);
}
if (incoming.get(1)) {
struct.principalName = iprot.readString();
struct.setPrincipalNameIsSet(true);
}
if (incoming.get(2)) {
struct.principalType = PrincipalType.findByValue(iprot.readI32());
struct.setPrincipalTypeIsSet(true);
}
if (incoming.get(3)) {
struct.grantInfo = new PrivilegeGrantInfo();
struct.grantInfo.read(iprot);
struct.setGrantInfoIsSet(true);
}
}
}
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectPrivilege struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
struct.hiveObject = new HiveObjectRef();
struct.hiveObject.read(iprot);
struct.setHiveObjectIsSet(true);
}
if (incoming.get(1)) {
struct.principalName = iprot.readString();
struct.setPrincipalNameIsSet(true);
}
if (incoming.get(2)) {
struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32());
struct.setPrincipalTypeIsSet(true);
}
if (incoming.get(3)) {
struct.grantInfo = new PrivilegeGrantInfo();
struct.grantInfo.read(iprot);
struct.setGrantInfoIsSet(true);
}
if (incoming.get(4)) {
struct.authorizer = iprot.readString();
struct.setAuthorizerIsSet(true);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!