/** 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(isSetStartTime()).compareTo(other.isSetStartTime()); if (lastComparison != 0) { return lastComparison; if (isSetStartTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startTime, other.startTime); if (lastComparison != 0) {
@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()); } }
/** 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(isSetStartTime()).compareTo(other.isSetStartTime()); if (lastComparison != 0) { return lastComparison; if (isSetStartTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startTime, other.startTime); if (lastComparison != 0) {
@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()); } }