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

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

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

HiveObjectPrivilege.isSetAuthorizer介绍

[英]Returns true if field authorizer is set (has been assigned a value) and false otherwise
[中]如果设置了字段授权者(已分配值),则返回true,否则返回false

代码示例

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

@Override
public int hashCode() {
 List<Object> list = new ArrayList<Object>();
 boolean present_hiveObject = true && (isSetHiveObject());
 list.add(present_hiveObject);
 if (present_hiveObject)
  list.add(hiveObject);
 boolean present_principalName = true && (isSetPrincipalName());
 list.add(present_principalName);
 if (present_principalName)
  list.add(principalName);
 boolean present_principalType = true && (isSetPrincipalType());
 list.add(present_principalType);
 if (present_principalType)
  list.add(principalType.getValue());
 boolean present_grantInfo = true && (isSetGrantInfo());
 list.add(present_grantInfo);
 if (present_grantInfo)
  list.add(grantInfo);
 boolean present_authorizer = true && (isSetAuthorizer());
 list.add(present_authorizer);
 if (present_authorizer)
  list.add(authorizer);
 return list.hashCode();
}

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

/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
 if (field == null) {
  throw new IllegalArgumentException();
 }
 switch (field) {
 case HIVE_OBJECT:
  return isSetHiveObject();
 case PRINCIPAL_NAME:
  return isSetPrincipalName();
 case PRINCIPAL_TYPE:
  return isSetPrincipalType();
 case GRANT_INFO:
  return isSetGrantInfo();
 case AUTHORIZER:
  return isSetAuthorizer();
 }
 throw new IllegalStateException();
}

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

lastComparison = Boolean.valueOf(isSetAuthorizer()).compareTo(other.isSetAuthorizer());
if (lastComparison != 0) {
 return lastComparison;
if (isSetAuthorizer()) {
 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizer, other.authorizer);
 if (lastComparison != 0) {

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

optionals.set(3);
if (struct.isSetAuthorizer()) {
 optionals.set(4);
 struct.grantInfo.write(oprot);
if (struct.isSetAuthorizer()) {
 oprot.writeString(struct.authorizer);

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

/**
 * Performs a deep copy on <i>other</i>.
 */
public HiveObjectPrivilege(HiveObjectPrivilege other) {
 if (other.isSetHiveObject()) {
  this.hiveObject = new HiveObjectRef(other.hiveObject);
 }
 if (other.isSetPrincipalName()) {
  this.principalName = other.principalName;
 }
 if (other.isSetPrincipalType()) {
  this.principalType = other.principalType;
 }
 if (other.isSetGrantInfo()) {
  this.grantInfo = new PrivilegeGrantInfo(other.grantInfo);
 }
 if (other.isSetAuthorizer()) {
  this.authorizer = other.authorizer;
 }
}

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

boolean this_present_authorizer = true && this.isSetAuthorizer();
boolean that_present_authorizer = true && that.isSetAuthorizer();
if (this_present_authorizer || that_present_authorizer) {
 if (!(this_present_authorizer && that_present_authorizer))

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

@Override
public int hashCode() {
 List<Object> list = new ArrayList<Object>();
 boolean present_hiveObject = true && (isSetHiveObject());
 list.add(present_hiveObject);
 if (present_hiveObject)
  list.add(hiveObject);
 boolean present_principalName = true && (isSetPrincipalName());
 list.add(present_principalName);
 if (present_principalName)
  list.add(principalName);
 boolean present_principalType = true && (isSetPrincipalType());
 list.add(present_principalType);
 if (present_principalType)
  list.add(principalType.getValue());
 boolean present_grantInfo = true && (isSetGrantInfo());
 list.add(present_grantInfo);
 if (present_grantInfo)
  list.add(grantInfo);
 boolean present_authorizer = true && (isSetAuthorizer());
 list.add(present_authorizer);
 if (present_authorizer)
  list.add(authorizer);
 return list.hashCode();
}

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
 if (field == null) {
  throw new IllegalArgumentException();
 }
 switch (field) {
 case HIVE_OBJECT:
  return isSetHiveObject();
 case PRINCIPAL_NAME:
  return isSetPrincipalName();
 case PRINCIPAL_TYPE:
  return isSetPrincipalType();
 case GRANT_INFO:
  return isSetGrantInfo();
 case AUTHORIZER:
  return isSetAuthorizer();
 }
 throw new IllegalStateException();
}

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

lastComparison = Boolean.valueOf(isSetAuthorizer()).compareTo(other.isSetAuthorizer());
if (lastComparison != 0) {
 return lastComparison;
if (isSetAuthorizer()) {
 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizer, other.authorizer);
 if (lastComparison != 0) {

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

optionals.set(3);
if (struct.isSetAuthorizer()) {
 optionals.set(4);
 struct.grantInfo.write(oprot);
if (struct.isSetAuthorizer()) {
 oprot.writeString(struct.authorizer);

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

boolean this_present_authorizer = true && this.isSetAuthorizer();
boolean that_present_authorizer = true && that.isSetAuthorizer();
if (this_present_authorizer || that_present_authorizer) {
 if (!(this_present_authorizer && that_present_authorizer))

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

/**
 * Performs a deep copy on <i>other</i>.
 */
public HiveObjectPrivilege(HiveObjectPrivilege other) {
 if (other.isSetHiveObject()) {
  this.hiveObject = new HiveObjectRef(other.hiveObject);
 }
 if (other.isSetPrincipalName()) {
  this.principalName = other.principalName;
 }
 if (other.isSetPrincipalType()) {
  this.principalType = other.principalType;
 }
 if (other.isSetGrantInfo()) {
  this.grantInfo = new PrivilegeGrantInfo(other.grantInfo);
 }
 if (other.isSetAuthorizer()) {
  this.authorizer = other.authorizer;
 }
}

相关文章

微信公众号

最新文章

更多