/** 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 ROW: return isSetRow(); case COLUMN_VALUES: return isSetColumnValues(); case STALE: return isSetStale(); case PARTIAL: return isSetPartial(); } throw new java.lang.IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TResult(TResult other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumnValues()) { java.util.List<TColumnValue> __this__columnValues = new java.util.ArrayList<TColumnValue>(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } this.columnValues = __this__columnValues; } this.stale = other.stale; this.partial = other.partial; }
boolean first = true; if (isSetRow()) { sb.append("row:"); if (this.row == null) {
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); if (isSetRow()) hashCode = hashCode * 8191 + row.hashCode(); hashCode = hashCode * 8191 + ((isSetColumnValues()) ? 131071 : 524287); if (isSetColumnValues()) hashCode = hashCode * 8191 + columnValues.hashCode(); hashCode = hashCode * 8191 + ((isSetStale()) ? 131071 : 524287); if (isSetStale()) hashCode = hashCode * 8191 + ((stale) ? 131071 : 524287); hashCode = hashCode * 8191 + ((isSetPartial()) ? 131071 : 524287); if (isSetPartial()) hashCode = hashCode * 8191 + ((partial) ? 131071 : 524287); return hashCode; }
if (struct.isSetRow()) { oprot.writeFieldBegin(ROW_FIELD_DESC); oprot.writeBinary(struct.row);
assertFalse(result.isSetRow()); assertEquals(0, result.getColumnValuesSize());
/** 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 ROW: return isSetRow(); case COLUMN_VALUES: return isSetColumnValues(); } throw new IllegalStateException(); }
/** 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 ROW: return isSetRow(); case COLUMN_VALUES: return isSetColumnValues(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_row = true && (isSetRow()); list.add(present_row); if (present_row) list.add(row); boolean present_columnValues = true && (isSetColumnValues()); list.add(present_columnValues); if (present_columnValues) list.add(columnValues); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_row = true && (isSetRow()); list.add(present_row); if (present_row) list.add(row); boolean present_columnValues = true && (isSetColumnValues()); list.add(present_columnValues); if (present_columnValues) list.add(columnValues); return list.hashCode(); }
public boolean equals(TResult that) { if (that == null) return false; boolean this_present_row = true && this.isSetRow(); boolean that_present_row = true && that.isSetRow(); if (this_present_row || that_present_row) { if (!(this_present_row && that_present_row)) return false; if (!this.row.equals(that.row)) return false; } boolean this_present_columnValues = true && this.isSetColumnValues(); boolean that_present_columnValues = true && that.isSetColumnValues(); if (this_present_columnValues || that_present_columnValues) { if (!(this_present_columnValues && that_present_columnValues)) return false; if (!this.columnValues.equals(that.columnValues)) return false; } return true; }
public boolean equals(TResult that) { if (that == null) return false; boolean this_present_row = true && this.isSetRow(); boolean that_present_row = true && that.isSetRow(); if (this_present_row || that_present_row) { if (!(this_present_row && that_present_row)) return false; if (!this.row.equals(that.row)) return false; } boolean this_present_columnValues = true && this.isSetColumnValues(); boolean that_present_columnValues = true && that.isSetColumnValues(); if (this_present_columnValues || that_present_columnValues) { if (!(this_present_columnValues && that_present_columnValues)) return false; if (!this.columnValues.equals(that.columnValues)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public TResult(TResult other) { if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumnValues()) { List<TColumnValue> __this__columnValues = new ArrayList<TColumnValue>(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } this.columnValues = __this__columnValues; } }
/** * Performs a deep copy on <i>other</i>. */ public TResult(TResult other) { if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumnValues()) { List<TColumnValue> __this__columnValues = new ArrayList<TColumnValue>(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } this.columnValues = __this__columnValues; } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TResult struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.columnValues.size()); for (TColumnValue _iter4 : struct.columnValues) { _iter4.write(oprot); } } BitSet optionals = new BitSet(); if (struct.isSetRow()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetRow()) { oprot.writeBinary(struct.row); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TResult struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.columnValues.size()); for (TColumnValue _iter4 : struct.columnValues) { _iter4.write(oprot); } } BitSet optionals = new BitSet(); if (struct.isSetRow()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetRow()) { oprot.writeBinary(struct.row); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TResult struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.row != null) { if (struct.isSetRow()) { oprot.writeFieldBegin(ROW_FIELD_DESC); oprot.writeBinary(struct.row); oprot.writeFieldEnd(); } } if (struct.columnValues != null) { oprot.writeFieldBegin(COLUMN_VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.columnValues.size())); for (TColumnValue _iter3 : struct.columnValues) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }