public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getScannerRows_result result = new getScannerRows_result(); if (e instanceof TIOError) { result.io = (TIOError) e; result.setIoIsSet(true); msg = result; } else if (e instanceof TIllegalArgument) { result.ia = (TIllegalArgument) e; result.setIaIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } };
public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case IO: return getIo(); case IA: return getIa(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; if (isSetIo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; if (isSetIa()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) {
getScannerRows_result typedOther = (getScannerRows_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); if (lastComparison != 0) { return lastComparison; if (isSetIo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); if (lastComparison != 0) { return lastComparison; if (isSetIa()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; if (isSetIo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; if (isSetIa()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; if (isSetIo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; if (isSetIa()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, getScannerRows_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetIo()) { optionals.set(1); } if (struct.isSetIa()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (TResult _iter176 : struct.success) { _iter176.write(oprot); } } } if (struct.isSetIo()) { struct.io.write(oprot); } if (struct.isSetIa()) { struct.ia.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, getScannerRows_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetIo()) { optionals.set(1); } if (struct.isSetIa()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (TResult _iter92 : struct.success) { _iter92.write(oprot); } } } if (struct.isSetIo()) { struct.io.write(oprot); } if (struct.isSetIa()) { struct.ia.write(oprot); } }
public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getScannerRows_result result = new getScannerRows_result(); if (e instanceof TIOError) { result.io = (TIOError) e; result.setIoIsSet(true); msg = result; } else if (e instanceof TIllegalArgument) { result.ia = (TIllegalArgument) e; result.setIaIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } };
public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getScannerRows_result result = new getScannerRows_result(); if (e instanceof TIOError) { result.io = (TIOError) e; result.setIoIsSet(true); msg = result; } else if (e instanceof TIllegalArgument) { result.ia = (TIllegalArgument) e; result.setIaIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } };
public boolean equals(getScannerRows_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); if (this_present_io || that_present_io) { if (!(this_present_io && that_present_io)) return false; if (!this.io.equals(that.io)) return false; } boolean this_present_ia = true && this.isSetIa(); boolean that_present_ia = true && that.isSetIa(); if (this_present_ia || that_present_ia) { if (!(this_present_ia && that_present_ia)) return false; if (!this.ia.equals(that.ia)) return false; } return true; }
public boolean equals(getScannerRows_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); if (this_present_io || that_present_io) { if (!(this_present_io && that_present_io)) return false; if (!this.io.equals(that.io)) return false; } boolean this_present_ia = true && this.isSetIa(); boolean that_present_ia = true && that.isSetIa(); if (this_present_ia || that_present_ia) { if (!(this_present_ia && that_present_ia)) return false; if (!this.ia.equals(that.ia)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, getScannerRows_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetIo()) { optionals.set(1); } if (struct.isSetIa()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (TResult _iter176 : struct.success) { _iter176.write(oprot); } } } if (struct.isSetIo()) { struct.io.write(oprot); } if (struct.isSetIa()) { struct.ia.write(oprot); } }
public boolean equals(getScannerRows_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); if (this_present_io || that_present_io) { if (!(this_present_io && that_present_io)) return false; if (!this.io.equals(that.io)) return false; } boolean this_present_ia = true && this.isSetIa(); boolean that_present_ia = true && that.isSetIa(); if (this_present_ia || that_present_ia) { if (!(this_present_ia && that_present_ia)) return false; if (!this.ia.equals(that.ia)) return false; } return true; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List<TResult>)value); } break; case IO: if (value == null) { unsetIo(); } else { setIo((TIOError)value); } break; case IA: if (value == null) { unsetIa(); } else { setIa((TIllegalArgument)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List<TResult>)value); } break; case IO: if (value == null) { unsetIo(); } else { setIo((TIOError)value); } break; case IA: if (value == null) { unsetIa(); } else { setIa((TIllegalArgument)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List<TResult>)value); } break; case IO: if (value == null) { unsetIo(); } else { setIo((TIOError)value); } break; case IA: if (value == null) { unsetIa(); } else { setIa((TIllegalArgument)value); } break; } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_io = true && (isSetIo()); list.add(present_io); if (present_io) list.add(io); boolean present_ia = true && (isSetIa()); list.add(present_ia); if (present_ia) list.add(ia); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public getScannerRows_result(getScannerRows_result other) { if (other.isSetSuccess()) { List<TResult> __this__success = new ArrayList<TResult>(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } this.success = __this__success; } if (other.isSetIo()) { this.io = new TIOError(other.io); } if (other.isSetIa()) { this.ia = new TIllegalArgument(other.ia); } }
/** * Performs a deep copy on <i>other</i>. */ public getScannerRows_result(getScannerRows_result other) { if (other.isSetSuccess()) { List<TResult> __this__success = new ArrayList<TResult>(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } this.success = __this__success; } if (other.isSetIo()) { this.io = new TIOError(other.io); } if (other.isSetIa()) { this.ia = new TIllegalArgument(other.ia); } }