@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_statementId = true; list.add(present_statementId); if (present_statementId) list.add(statementId); boolean present_statementType = true; list.add(present_statementType); if (present_statementType) list.add(statementType); boolean present_parameterMetaData = true && (isSetParameterMetaData()); list.add(present_parameterMetaData); if (present_parameterMetaData) list.add(parameterMetaData); boolean present_resultSetMetaData = true && (isSetResultSetMetaData()); list.add(present_resultSetMetaData); if (present_resultSetMetaData) list.add(resultSetMetaData); boolean present_warnings = true && (isSetWarnings()); list.add(present_warnings); if (present_warnings) list.add(warnings); return list.hashCode(); }
if (isSetWarnings()) { if (!first) sb.append(", "); sb.append("warnings:");
/** * Performs a deep copy on <i>other</i>. */ public PrepareResult(PrepareResult other) { __isset_bitfield = other.__isset_bitfield; this.statementId = other.statementId; this.statementType = other.statementType; if (other.isSetParameterMetaData()) { List<ColumnDescriptor> __this__parameterMetaData = new ArrayList<ColumnDescriptor>(other.parameterMetaData.size()); for (ColumnDescriptor other_element : other.parameterMetaData) { __this__parameterMetaData.add(new ColumnDescriptor(other_element)); } this.parameterMetaData = __this__parameterMetaData; } if (other.isSetResultSetMetaData()) { List<ColumnDescriptor> __this__resultSetMetaData = new ArrayList<ColumnDescriptor>(other.resultSetMetaData.size()); for (ColumnDescriptor other_element : other.resultSetMetaData) { __this__resultSetMetaData.add(new ColumnDescriptor(other_element)); } this.resultSetMetaData = __this__resultSetMetaData; } if (other.isSetWarnings()) { this.warnings = new SnappyExceptionData(other.warnings); } }
/** 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 STATEMENT_ID: return isSetStatementId(); case STATEMENT_TYPE: return isSetStatementType(); case PARAMETER_META_DATA: return isSetParameterMetaData(); case RESULT_SET_META_DATA: return isSetResultSetMetaData(); case WARNINGS: return isSetWarnings(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetWarnings()).compareTo(other.isSetWarnings()); if (lastComparison != 0) { return lastComparison; if (isSetWarnings()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warnings, other.warnings); if (lastComparison != 0) {
boolean this_present_warnings = true && this.isSetWarnings(); boolean that_present_warnings = true && that.isSetWarnings(); if (this_present_warnings || that_present_warnings) { if (!(this_present_warnings && that_present_warnings))
if (struct.isSetWarnings()) { oprot.writeFieldBegin(WARNINGS_FIELD_DESC); struct.warnings.write(oprot);
optionals.set(0); if (struct.isSetWarnings()) { optionals.set(1); if (struct.isSetWarnings()) { struct.warnings.write(oprot);