org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege.setPrincipalNameIsSet()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(79)

本文整理了Java中org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege.setPrincipalNameIsSet()方法的一些代码示例,展示了HiveObjectPrivilege.setPrincipalNameIsSet()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HiveObjectPrivilege.setPrincipalNameIsSet()方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege
类名称:HiveObjectPrivilege
方法名:setPrincipalNameIsSet

HiveObjectPrivilege.setPrincipalNameIsSet介绍

暂无

代码示例

代码示例来源:origin: apache/hive

if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
 struct.principalName = iprot.readString();
 struct.setPrincipalNameIsSet(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

if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
 struct.principalName = iprot.readString();
 struct.setPrincipalNameIsSet(true);
} else { 
 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);

代码示例来源:origin: com.facebook.presto.hive/hive-apache

if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
 struct.principalName = iprot.readString();
 struct.setPrincipalNameIsSet(true);
} else { 
 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);

代码示例来源:origin: org.spark-project.hive/hive-metastore

if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
 struct.principalName = iprot.readString();
 struct.setPrincipalNameIsSet(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);
  }
 }
}

相关文章

微信公众号

最新文章

更多