lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; if (isSetTableName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); 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 java.lang.IllegalArgumentException(); } switch (field) { case TFINO: return isSetTfino(); case CREDENTIALS: return isSetCredentials(); case TABLE_NAME: return isSetTableName(); case LOGS_TO_WATCH: return isSetLogsToWatch(); } throw new java.lang.IllegalStateException(); }
optionals.set(1); if (struct.isSetTableName()) { optionals.set(2); struct.credentials.write(oprot); if (struct.isSetTableName()) { oprot.writeString(struct.tableName);
lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; if (isSetTableName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) {
boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); if (this_present_tableName || that_present_tableName) { if (!(this_present_tableName && that_present_tableName))
optionals.set(1); if (struct.isSetTableName()) { optionals.set(2); struct.credentials.write(oprot); if (struct.isSetTableName()) { oprot.writeString(struct.tableName);
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_tfino = true && (isSetTfino()); list.add(present_tfino); if (present_tfino) list.add(tfino); boolean present_credentials = true && (isSetCredentials()); list.add(present_credentials); if (present_credentials) list.add(credentials); boolean present_tableName = true && (isSetTableName()); list.add(present_tableName); if (present_tableName) list.add(tableName); boolean present_logsToWatch = true && (isSetLogsToWatch()); list.add(present_logsToWatch); if (present_logsToWatch) list.add(logsToWatch); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public drainReplicationTable_args(drainReplicationTable_args other) { if (other.isSetTfino()) { this.tfino = new org.apache.accumulo.core.trace.thrift.TInfo(other.tfino); } if (other.isSetCredentials()) { this.credentials = new org.apache.accumulo.core.security.thrift.TCredentials(other.credentials); } if (other.isSetTableName()) { this.tableName = other.tableName; } if (other.isSetLogsToWatch()) { Set<String> __this__logsToWatch = new HashSet<String>(other.logsToWatch); this.logsToWatch = __this__logsToWatch; } }
/** 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 TFINO: return isSetTfino(); case CREDENTIALS: return isSetCredentials(); case TABLE_NAME: return isSetTableName(); case LOGS_TO_WATCH: return isSetLogsToWatch(); } throw new IllegalStateException(); }
boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); if (this_present_tableName || that_present_tableName) { if (!(this_present_tableName && that_present_tableName))
/** * Performs a deep copy on <i>other</i>. */ public drainReplicationTable_args(drainReplicationTable_args other) { if (other.isSetTfino()) { this.tfino = new org.apache.accumulo.core.trace.thrift.TInfo(other.tfino); } if (other.isSetCredentials()) { this.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(other.credentials); } if (other.isSetTableName()) { this.tableName = other.tableName; } if (other.isSetLogsToWatch()) { java.util.Set<java.lang.String> __this__logsToWatch = new java.util.HashSet<java.lang.String>(other.logsToWatch); this.logsToWatch = __this__logsToWatch; } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetTfino()) ? 131071 : 524287); if (isSetTfino()) hashCode = hashCode * 8191 + tfino.hashCode(); hashCode = hashCode * 8191 + ((isSetCredentials()) ? 131071 : 524287); if (isSetCredentials()) hashCode = hashCode * 8191 + credentials.hashCode(); hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); if (isSetTableName()) hashCode = hashCode * 8191 + tableName.hashCode(); hashCode = hashCode * 8191 + ((isSetLogsToWatch()) ? 131071 : 524287); if (isSetLogsToWatch()) hashCode = hashCode * 8191 + logsToWatch.hashCode(); return hashCode; }