@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); boolean present_createTime = true; list.add(present_createTime); if (present_createTime) list.add(createTime); boolean present_lastAccessTime = true; list.add(present_lastAccessTime); if (present_lastAccessTime) list.add(lastAccessTime); boolean present_relativePath = true && (isSetRelativePath()); list.add(present_relativePath); if (present_relativePath) list.add(relativePath); boolean present_parameters = true && (isSetParameters()); list.add(present_parameters); if (present_parameters) list.add(parameters); boolean present_privileges = true && (isSetPrivileges()); list.add(present_privileges); if (present_privileges) list.add(privileges); return list.hashCode(); }
if (isSetPrivileges()) { if (!first) sb.append(", "); sb.append("privileges:");
if (struct.isSetPrivileges()) { oprot.writeFieldBegin(PRIVILEGES_FIELD_DESC); struct.privileges.write(oprot);
/** * Performs a deep copy on <i>other</i>. */ public PartitionWithoutSD(PartitionWithoutSD other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetValues()) { List<String> __this__values = new ArrayList<String>(other.values); this.values = __this__values; } this.createTime = other.createTime; this.lastAccessTime = other.lastAccessTime; if (other.isSetRelativePath()) { this.relativePath = other.relativePath; } if (other.isSetParameters()) { Map<String,String> __this__parameters = new HashMap<String,String>(other.parameters); this.parameters = __this__parameters; } if (other.isSetPrivileges()) { this.privileges = new PrincipalPrivilegeSet(other.privileges); } }
lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; if (isSetPrivileges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); 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 VALUES: return isSetValues(); case CREATE_TIME: return isSetCreateTime(); case LAST_ACCESS_TIME: return isSetLastAccessTime(); case RELATIVE_PATH: return isSetRelativePath(); case PARAMETERS: return isSetParameters(); case PRIVILEGES: return isSetPrivileges(); } throw new IllegalStateException(); }
boolean this_present_privileges = true && this.isSetPrivileges(); boolean that_present_privileges = true && that.isSetPrivileges(); if (this_present_privileges || that_present_privileges) { if (!(this_present_privileges && that_present_privileges))
optionals.set(4); if (struct.isSetPrivileges()) { optionals.set(5); if (struct.isSetPrivileges()) { struct.privileges.write(oprot);
if (isSetPrivileges()) { if (!first) sb.append(", "); sb.append("privileges:");
if (isSetPrivileges()) { if (!first) sb.append(", "); sb.append("privileges:");
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); builder.append(present_values); if (present_values) builder.append(values); boolean present_createTime = true; builder.append(present_createTime); if (present_createTime) builder.append(createTime); boolean present_lastAccessTime = true; builder.append(present_lastAccessTime); if (present_lastAccessTime) builder.append(lastAccessTime); boolean present_relativePath = true && (isSetRelativePath()); builder.append(present_relativePath); if (present_relativePath) builder.append(relativePath); boolean present_parameters = true && (isSetParameters()); builder.append(present_parameters); if (present_parameters) builder.append(parameters); boolean present_privileges = true && (isSetPrivileges()); builder.append(present_privileges); if (present_privileges) builder.append(privileges); return builder.toHashCode(); }
if (other.isSetPrivileges()) { this.privileges = new PrincipalPrivilegeSet(other.privileges);
if (other.isSetPrivileges()) { this.privileges = new PrincipalPrivilegeSet(other.privileges);
if (struct.isSetPrivileges()) { oprot.writeFieldBegin(PRIVILEGES_FIELD_DESC); struct.privileges.write(oprot);
if (struct.isSetPrivileges()) { oprot.writeFieldBegin(PRIVILEGES_FIELD_DESC); struct.privileges.write(oprot);
/** 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 VALUES: return isSetValues(); case CREATE_TIME: return isSetCreateTime(); case LAST_ACCESS_TIME: return isSetLastAccessTime(); case RELATIVE_PATH: return isSetRelativePath(); case PARAMETERS: return isSetParameters(); case PRIVILEGES: return isSetPrivileges(); } throw new IllegalStateException(); }
/** 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 VALUES: return isSetValues(); case CREATE_TIME: return isSetCreateTime(); case LAST_ACCESS_TIME: return isSetLastAccessTime(); case RELATIVE_PATH: return isSetRelativePath(); case PARAMETERS: return isSetParameters(); case PRIVILEGES: return isSetPrivileges(); } throw new IllegalStateException(); }
boolean this_present_privileges = true && this.isSetPrivileges(); boolean that_present_privileges = true && that.isSetPrivileges(); if (this_present_privileges || that_present_privileges) { if (!(this_present_privileges && that_present_privileges))
boolean this_present_privileges = true && this.isSetPrivileges(); boolean that_present_privileges = true && that.isSetPrivileges(); if (this_present_privileges || that_present_privileges) { if (!(this_present_privileges && that_present_privileges))
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); builder.append(present_values); if (present_values) builder.append(values); boolean present_createTime = true; builder.append(present_createTime); if (present_createTime) builder.append(createTime); boolean present_lastAccessTime = true; builder.append(present_lastAccessTime); if (present_lastAccessTime) builder.append(lastAccessTime); boolean present_relativePath = true && (isSetRelativePath()); builder.append(present_relativePath); if (present_relativePath) builder.append(relativePath); boolean present_parameters = true && (isSetParameters()); builder.append(present_parameters); if (present_parameters) builder.append(parameters); boolean present_privileges = true && (isSetPrivileges()); builder.append(present_privileges); if (present_privileges) builder.append(privileges); return builder.toHashCode(); }