if (!(this_present_state && that_present_state)) return false; if (!this.state.equals(that.state)) return false;
case 3: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.state = org.apache.accumulo.core.master.thrift.BulkImportState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else {
public void write(org.apache.thrift.protocol.TProtocol oprot, BulkImportStatus struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(START_TIME_FIELD_DESC); oprot.writeI64(struct.startTime); oprot.writeFieldEnd(); if (struct.filename != null) { oprot.writeFieldBegin(FILENAME_FIELD_DESC); oprot.writeString(struct.filename); oprot.writeFieldEnd(); } if (struct.state != null) { oprot.writeFieldBegin(STATE_FIELD_DESC); oprot.writeI32(struct.state.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public int compare(BulkImportState o1, BulkImportState o2) { if (o1 == null && o2 == null) return 0; else if (o1 == null) return -1; return o1.compareTo(o2); }
@Override public String format(Object obj) { BulkImportState state = (BulkImportState) obj; return state.name(); }
@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; }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, BulkImportStatus struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.startTime = iprot.readI64(); struct.setStartTimeIsSet(true); } if (incoming.get(1)) { struct.filename = iprot.readString(); struct.setFilenameIsSet(true); } if (incoming.get(2)) { struct.state = org.apache.accumulo.core.master.thrift.BulkImportState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } } }
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 { 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()); } }
case 3: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.state = org.apache.accumulo.core.master.thrift.BulkImportState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else {
@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(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, BulkImportStatus struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.startTime = iprot.readI64(); struct.setStartTimeIsSet(true); } if (incoming.get(1)) { struct.filename = iprot.readString(); struct.setFilenameIsSet(true); } if (incoming.get(2)) { struct.state = org.apache.accumulo.core.master.thrift.BulkImportState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, BulkImportStatus struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(START_TIME_FIELD_DESC); oprot.writeI64(struct.startTime); oprot.writeFieldEnd(); if (struct.filename != null) { oprot.writeFieldBegin(FILENAME_FIELD_DESC); oprot.writeString(struct.filename); oprot.writeFieldEnd(); } if (struct.state != null) { oprot.writeFieldBegin(STATE_FIELD_DESC); oprot.writeI32(struct.state.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@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()); } }