first = false; if (isSetGrantOption()) { if (!first) sb.append(", "); sb.append("grantOption:");
builder.append(createTime); boolean present_grantOption = true && (isSetGrantOption()); builder.append(present_grantOption); if (present_grantOption)
if (struct.isSetGrantOption()) { oprot.writeFieldBegin(GRANT_OPTION_FIELD_DESC); oprot.writeI32(struct.grantOption.getValue());
lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption()); if (lastComparison != 0) { return lastComparison; if (isSetGrantOption()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption); if (lastComparison != 0) {
/** 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 PRIVILEGE_SCOPE: return isSetPrivilegeScope(); case SERVER_NAME: return isSetServerName(); case DB_NAME: return isSetDbName(); case TABLE_NAME: return isSetTableName(); case URI: return isSetURI(); case ACTION: return isSetAction(); case CREATE_TIME: return isSetCreateTime(); case GRANT_OPTION: return isSetGrantOption(); case COLUMN_NAME: return isSetColumnName(); } throw new IllegalStateException(); }
optionals.set(3); if (struct.isSetGrantOption()) { optionals.set(4); oprot.writeI64(struct.createTime); if (struct.isSetGrantOption()) { oprot.writeI32(struct.grantOption.getValue());
boolean this_present_grantOption = true && this.isSetGrantOption(); boolean that_present_grantOption = true && that.isSetGrantOption(); if (this_present_grantOption || that_present_grantOption) { if (!(this_present_grantOption && that_present_grantOption))
if (other.isSetGrantOption()) { this.grantOption = other.grantOption;
boolean this_present_grantOption = true && tSentryPrivilege1.isSetGrantOption(); boolean that_present_grantOption = true && tSentryPrivilege2.isSetGrantOption(); if (this_present_grantOption || that_present_grantOption) { if (!(this_present_grantOption && that_present_grantOption)) {