public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TFINO: return getTfino(); case CREDENTIALS: return getCredentials(); case TABLE_NAME: return getTableName(); case LOGS_TO_WATCH: return getLogsToWatch(); } throw new java.lang.IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(isSetTfino()).compareTo(other.isSetTfino()); if (lastComparison != 0) { return lastComparison; if (isSetTfino()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tfino, other.tfino); if (lastComparison != 0) { lastComparison = java.lang.Boolean.valueOf(isSetCredentials()).compareTo(other.isSetCredentials()); if (lastComparison != 0) { return lastComparison; if (isSetCredentials()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credentials, other.credentials); if (lastComparison != 0) { 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) { lastComparison = java.lang.Boolean.valueOf(isSetLogsToWatch()).compareTo(other.isSetLogsToWatch()); if (lastComparison != 0) { return lastComparison; if (isSetLogsToWatch()) {
lastComparison = Boolean.valueOf(isSetTfino()).compareTo(other.isSetTfino()); if (lastComparison != 0) { return lastComparison; if (isSetTfino()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tfino, other.tfino); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetCredentials()).compareTo(other.isSetCredentials()); if (lastComparison != 0) { return lastComparison; if (isSetCredentials()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credentials, other.credentials); if (lastComparison != 0) { 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) { lastComparison = Boolean.valueOf(isSetLogsToWatch()).compareTo(other.isSetLogsToWatch()); if (lastComparison != 0) { return lastComparison; if (isSetLogsToWatch()) {
return false; boolean this_present_tfino = true && this.isSetTfino(); boolean that_present_tfino = true && that.isSetTfino(); if (this_present_tfino || that_present_tfino) { if (!(this_present_tfino && that_present_tfino)) boolean this_present_credentials = true && this.isSetCredentials(); boolean that_present_credentials = true && that.isSetCredentials(); if (this_present_credentials || that_present_credentials) { if (!(this_present_credentials && that_present_credentials)) 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)) boolean this_present_logsToWatch = true && this.isSetLogsToWatch(); boolean that_present_logsToWatch = true && that.isSetLogsToWatch(); if (this_present_logsToWatch || that_present_logsToWatch) { if (!(this_present_logsToWatch && that_present_logsToWatch))
TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTfino()) { optionals.set(0); if (struct.isSetCredentials()) { optionals.set(1); if (struct.isSetTableName()) { optionals.set(2); if (struct.isSetLogsToWatch()) { optionals.set(3); if (struct.isSetTfino()) { struct.tfino.write(oprot); if (struct.isSetCredentials()) { struct.credentials.write(oprot); if (struct.isSetTableName()) { oprot.writeString(struct.tableName); if (struct.isSetLogsToWatch()) {
@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(); }
public drainReplicationTable_args deepCopy() { return new drainReplicationTable_args(this); }
public drainReplicationTable_args getEmptyArgsInstance() { return new drainReplicationTable_args(); }
public drainReplicationTable_args getEmptyArgsInstance() { return new drainReplicationTable_args(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drainReplicationTable", org.apache.thrift.protocol.TMessageType.CALL, 0)); drainReplicationTable_args args = new drainReplicationTable_args(); args.setTfino(tfino); args.setCredentials(credentials); args.setTableName(tableName); args.setLogsToWatch(logsToWatch); args.write(prot); prot.writeMessageEnd(); }
public Object getFieldValue(_Fields field) { switch (field) { case TFINO: return getTfino(); case CREDENTIALS: return getCredentials(); case TABLE_NAME: return getTableName(); case LOGS_TO_WATCH: return getLogsToWatch(); } throw new IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof drainReplicationTable_args) return this.equals((drainReplicationTable_args)that); return false; }
public void send_drainReplicationTable(org.apache.accumulo.core.trace.thrift.TInfo tfino, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, Set<String> logsToWatch) throws org.apache.thrift.TException { drainReplicationTable_args args = new drainReplicationTable_args(); args.setTfino(tfino); args.setCredentials(credentials); args.setTableName(tableName); args.setLogsToWatch(logsToWatch); sendBase("drainReplicationTable", args); }
return true; boolean this_present_tfino = true && this.isSetTfino(); boolean that_present_tfino = true && that.isSetTfino(); if (this_present_tfino || that_present_tfino) { if (!(this_present_tfino && that_present_tfino)) boolean this_present_credentials = true && this.isSetCredentials(); boolean that_present_credentials = true && that.isSetCredentials(); if (this_present_credentials || that_present_credentials) { if (!(this_present_credentials && that_present_credentials)) 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)) boolean this_present_logsToWatch = true && this.isSetLogsToWatch(); boolean that_present_logsToWatch = true && that.isSetLogsToWatch(); if (this_present_logsToWatch || that_present_logsToWatch) { if (!(this_present_logsToWatch && that_present_logsToWatch))
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTfino()) { optionals.set(0); if (struct.isSetCredentials()) { optionals.set(1); if (struct.isSetTableName()) { optionals.set(2); if (struct.isSetLogsToWatch()) { optionals.set(3); if (struct.isSetTfino()) { struct.tfino.write(oprot); if (struct.isSetCredentials()) { struct.credentials.write(oprot); if (struct.isSetTableName()) { oprot.writeString(struct.tableName); if (struct.isSetLogsToWatch()) {
/** * 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; }
/** 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(); }