本文整理了Java中org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege.isSetPrincipalType()
方法的一些代码示例,展示了HiveObjectPrivilege.isSetPrincipalType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HiveObjectPrivilege.isSetPrincipalType()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege
类名称:HiveObjectPrivilege
方法名:isSetPrincipalType
[英]Returns true if field principalType is set (has been assigned a value) and false otherwise
[中]如果设置了字段principalType(已赋值),则返回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(isSetPrincipalType()).compareTo(other.isSetPrincipalType());
if (lastComparison != 0) {
return lastComparison;
if (isSetPrincipalType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, other.principalType);
if (lastComparison != 0) {
代码示例来源:origin: apache/hive
optionals.set(1);
if (struct.isSetPrincipalType()) {
optionals.set(2);
oprot.writeString(struct.principalName);
if (struct.isSetPrincipalType()) {
oprot.writeI32(struct.principalType.getValue());
代码示例来源: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_principalType = true && this.isSetPrincipalType();
boolean that_present_principalType = true && that.isSetPrincipalType();
if (this_present_principalType || that_present_principalType) {
if (!(this_present_principalType && that_present_principalType))
代码示例来源:origin: org.spark-project.hive/hive-metastore
@Override
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
boolean present_hiveObject = true && (isSetHiveObject());
builder.append(present_hiveObject);
if (present_hiveObject)
builder.append(hiveObject);
boolean present_principalName = true && (isSetPrincipalName());
builder.append(present_principalName);
if (present_principalName)
builder.append(principalName);
boolean present_principalType = true && (isSetPrincipalType());
builder.append(present_principalType);
if (present_principalType)
builder.append(principalType.getValue());
boolean present_grantInfo = true && (isSetGrantInfo());
builder.append(present_grantInfo);
if (present_grantInfo)
builder.append(grantInfo);
return builder.toHashCode();
}
代码示例来源:origin: org.apache.hadoop.hive/hive-metastore
/** Returns true if field corresponding to fieldID is set (has been asigned 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();
}
throw new IllegalStateException();
}
代码示例来源:origin: org.spark-project.hive/hive-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();
}
throw new IllegalStateException();
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
/** 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();
}
throw new IllegalStateException();
}
代码示例来源: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: com.facebook.presto.hive/hive-apache
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, HiveObjectPrivilege struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetHiveObject()) {
optionals.set(0);
}
if (struct.isSetPrincipalName()) {
optionals.set(1);
}
if (struct.isSetPrincipalType()) {
optionals.set(2);
}
if (struct.isSetGrantInfo()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetHiveObject()) {
struct.hiveObject.write(oprot);
}
if (struct.isSetPrincipalName()) {
oprot.writeString(struct.principalName);
}
if (struct.isSetPrincipalType()) {
oprot.writeI32(struct.principalType.getValue());
}
if (struct.isSetGrantInfo()) {
struct.grantInfo.write(oprot);
}
}
代码示例来源:origin: org.spark-project.hive/hive-metastore
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, HiveObjectPrivilege struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetHiveObject()) {
optionals.set(0);
}
if (struct.isSetPrincipalName()) {
optionals.set(1);
}
if (struct.isSetPrincipalType()) {
optionals.set(2);
}
if (struct.isSetGrantInfo()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetHiveObject()) {
struct.hiveObject.write(oprot);
}
if (struct.isSetPrincipalName()) {
oprot.writeString(struct.principalName);
}
if (struct.isSetPrincipalType()) {
oprot.writeI32(struct.principalType.getValue());
}
if (struct.isSetGrantInfo()) {
struct.grantInfo.write(oprot);
}
}
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
optionals.set(1);
if (struct.isSetPrincipalType()) {
optionals.set(2);
oprot.writeString(struct.principalName);
if (struct.isSetPrincipalType()) {
oprot.writeI32(struct.principalType.getValue());
代码示例来源:origin: com.facebook.presto.hive/hive-apache
/**
* 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);
}
}
代码示例来源:origin: org.spark-project.hive/hive-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);
}
}
代码示例来源:origin: org.apache.hadoop.hive/hive-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);
}
}
代码示例来源: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;
}
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
@Override
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
boolean present_hiveObject = true && (isSetHiveObject());
builder.append(present_hiveObject);
if (present_hiveObject)
builder.append(hiveObject);
boolean present_principalName = true && (isSetPrincipalName());
builder.append(present_principalName);
if (present_principalName)
builder.append(principalName);
boolean present_principalType = true && (isSetPrincipalType());
builder.append(present_principalType);
if (present_principalType)
builder.append(principalType.getValue());
boolean present_grantInfo = true && (isSetGrantInfo());
builder.append(present_grantInfo);
if (present_grantInfo)
builder.append(grantInfo);
return builder.toHashCode();
}
内容来源于网络,如有侵权,请联系作者删除!