public BulkImportStatus deepCopy() { return new BulkImportStatus(this); }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof BulkImportStatus) return this.equals((BulkImportStatus)that); return false; }
public java.lang.Object getFieldValue(_Fields field) { switch (field) { case START_TIME: return getStartTime(); case FILENAME: return getFilename(); case STATE: return getState(); } throw new java.lang.IllegalStateException(); }
/** * 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; } }
/** 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(); }
for (int _i45 = 0; _i45 < _list43.size; ++_i45) _elem44 = new BulkImportStatus(); _elem44.read(iprot); struct.bulkImports.add(_elem44);
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { scheme(iprot).read(iprot, this); }
for (int _i9 = 0; _i9 < _list7.size; ++_i9) _elem8 = new BulkImportStatus(); _elem8.read(iprot); struct.bulkImports.add(_elem8);
lastComparison = java.lang.Boolean.valueOf(isSetStartTime()).compareTo(other.isSetStartTime()); if (lastComparison != 0) { return lastComparison; if (isSetStartTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startTime, other.startTime); if (lastComparison != 0) { 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) { lastComparison = java.lang.Boolean.valueOf(isSetState()).compareTo(other.isSetState()); if (lastComparison != 0) { return lastComparison; if (isSetState()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); if (lastComparison != 0) {
@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; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { scheme(oprot).write(oprot, this); }
for (int _i77 = 0; _i77 < _list75.size; ++_i77) _elem76 = new BulkImportStatus(); _elem76.read(iprot); struct.bulkImports.add(_elem76);
@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()); } }
public void updateBulkImportStatus(List<String> files, BulkImportState state) { for (String file : files) { BulkImportStatus initial = new BulkImportStatus(System.currentTimeMillis(), file, state); status.putIfAbsent(file, initial); initial = status.get(file); if (initial != null) { initial.state = state; } } }
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)) 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))
public Object getFieldValue(_Fields field) { switch (field) { case START_TIME: return getStartTime(); case FILENAME: return getFilename(); case STATE: return getState(); } throw new IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof BulkImportStatus) return this.equals((BulkImportStatus)that); return false; }
for (int _i25 = 0; _i25 < _list23.size; ++_i25) _elem24 = new BulkImportStatus(); _elem24.read(iprot); struct.bulkImports.add(_elem24);