/** * Performs a deep copy on <i>other</i>. */ public BulkImportStatus(BulkImportStatus other) { __isset_bitfield = other.__isset_bitfield; this.startTime = other.startTime; if (other.isSetFilename()) { this.filename = other.filename; } if (other.isSetState()) { this.state = other.state; } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startTime); hashCode = hashCode * 8191 + ((isSetFilename()) ? 131071 : 524287); if (isSetFilename()) hashCode = hashCode * 8191 + filename.hashCode(); hashCode = hashCode * 8191 + ((isSetState()) ? 131071 : 524287); if (isSetState()) hashCode = hashCode * 8191 + state.getValue(); 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 START_TIME: return isSetStartTime(); case FILENAME: return isSetFilename(); case STATE: return isSetState(); } throw new java.lang.IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(isSetFilename()).compareTo(other.isSetFilename()); if (lastComparison != 0) { return lastComparison; if (isSetFilename()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filename, other.filename); if (lastComparison != 0) {
boolean this_present_filename = true && this.isSetFilename(); boolean that_present_filename = true && that.isSetFilename(); if (this_present_filename || that_present_filename) { if (!(this_present_filename && that_present_filename))
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BulkImportStatus struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetStartTime()) { optionals.set(0); } if (struct.isSetFilename()) { optionals.set(1); } if (struct.isSetState()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetStartTime()) { oprot.writeI64(struct.startTime); } if (struct.isSetFilename()) { oprot.writeString(struct.filename); } if (struct.isSetState()) { oprot.writeI32(struct.state.getValue()); } }
/** * Performs a deep copy on <i>other</i>. */ public BulkImportStatus(BulkImportStatus other) { __isset_bitfield = other.__isset_bitfield; this.startTime = other.startTime; if (other.isSetFilename()) { this.filename = other.filename; } if (other.isSetState()) { this.state = other.state; } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_startTime = true; list.add(present_startTime); if (present_startTime) list.add(startTime); boolean present_filename = true && (isSetFilename()); list.add(present_filename); if (present_filename) list.add(filename); boolean present_state = true && (isSetState()); list.add(present_state); if (present_state) list.add(state.getValue()); return list.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 IllegalArgumentException(); } switch (field) { case START_TIME: return isSetStartTime(); case FILENAME: return isSetFilename(); case STATE: return isSetState(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetFilename()).compareTo(other.isSetFilename()); if (lastComparison != 0) { return lastComparison; if (isSetFilename()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filename, other.filename); if (lastComparison != 0) {
public boolean equals(BulkImportStatus that) { if (that == null) return false; boolean this_present_startTime = true; boolean that_present_startTime = true; if (this_present_startTime || that_present_startTime) { if (!(this_present_startTime && that_present_startTime)) return false; if (this.startTime != that.startTime) return false; } boolean this_present_filename = true && this.isSetFilename(); boolean that_present_filename = true && that.isSetFilename(); if (this_present_filename || that_present_filename) { if (!(this_present_filename && that_present_filename)) return false; if (!this.filename.equals(that.filename)) return false; } boolean this_present_state = true && this.isSetState(); boolean that_present_state = true && that.isSetState(); if (this_present_state || that_present_state) { if (!(this_present_state && that_present_state)) return false; if (!this.state.equals(that.state)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BulkImportStatus struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetStartTime()) { optionals.set(0); } if (struct.isSetFilename()) { optionals.set(1); } if (struct.isSetState()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetStartTime()) { oprot.writeI64(struct.startTime); } if (struct.isSetFilename()) { oprot.writeString(struct.filename); } if (struct.isSetState()) { oprot.writeI32(struct.state.getValue()); } }