for (int _i72 = 0; _i72 < _list70.size; ++_i72) _elem71 = new TColumnIncrement(); _elem71.read(iprot); struct.columns.add(_elem71);
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TColumnIncrement) return this.equals((TColumnIncrement)that); return false; }
@org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { case FAMILY: return getFamily(); case QUALIFIER: return getQualifier(); case AMOUNT: return getAmount(); } throw new java.lang.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 java.lang.IllegalArgumentException(); } switch (field) { case FAMILY: return isSetFamily(); case QUALIFIER: return isSetQualifier(); case AMOUNT: return isSetAmount(); } throw new java.lang.IllegalStateException(); }
case FAMILY: if (value == null) { unsetFamily(); } else { if (value instanceof byte[]) { setFamily((byte[])value); } else { setFamily((java.nio.ByteBuffer)value); unsetQualifier(); } else { if (value instanceof byte[]) { setQualifier((byte[])value); } else { setQualifier((java.nio.ByteBuffer)value); unsetAmount(); } else { setAmount((java.lang.Long)value);
public TColumnIncrement deepCopy() { return new TColumnIncrement(this); }
byte[] family = entry.getKey(); for (Cell cell : entry.getValue()) { TColumnIncrement columnValue = new TColumnIncrement(); columnValue.setFamily(family).setQualifier(CellUtil.cloneQualifier(cell)); columnValue.setAmount( Bytes.toLong(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength())); out.addToColumns(columnValue);
/** * Performs a deep copy on <i>other</i>. */ public TColumnIncrement(TColumnIncrement other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetFamily()) { this.family = org.apache.thrift.TBaseHelper.copyBinary(other.family); } if (other.isSetQualifier()) { this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(other.qualifier); } this.amount = other.amount; }
public void write(org.apache.thrift.protocol.TProtocol oprot, TColumnIncrement struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.family != null) { oprot.writeFieldBegin(FAMILY_FIELD_DESC); oprot.writeBinary(struct.family); oprot.writeFieldEnd(); } if (struct.qualifier != null) { oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); oprot.writeBinary(struct.qualifier); oprot.writeFieldEnd(); } if (struct.isSetAmount()) { oprot.writeFieldBegin(AMOUNT_FIELD_DESC); oprot.writeI64(struct.amount); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumnIncrement struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.family); oprot.writeBinary(struct.qualifier); java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAmount()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetAmount()) { oprot.writeI64(struct.amount); } }
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 setFieldValue(_Fields field, Object value) { switch (field) { case FAMILY: if (value == null) { unsetFamily(); } else { setFamily((ByteBuffer)value); } break; case QUALIFIER: if (value == null) { unsetQualifier(); } else { setQualifier((ByteBuffer)value); } break; case AMOUNT: if (value == null) { unsetAmount(); } else { setAmount((Long)value); } break; } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); if (isSetFamily()) hashCode = hashCode * 8191 + family.hashCode(); hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); if (isSetQualifier()) hashCode = hashCode * 8191 + qualifier.hashCode(); hashCode = hashCode * 8191 + ((isSetAmount()) ? 131071 : 524287); if (isSetAmount()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(amount); return hashCode; }
/** * Performs a deep copy on <i>other</i>. */ public TIncrement(TIncrement other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumns()) { java.util.List<TColumnIncrement> __this__columns = new java.util.ArrayList<TColumnIncrement>(other.columns.size()); for (TColumnIncrement other_element : other.columns) { __this__columns.add(new TColumnIncrement(other_element)); } this.columns = __this__columns; } if (other.isSetAttributes()) { java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> __this__attributes = new java.util.HashMap<java.nio.ByteBuffer,java.nio.ByteBuffer>(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { this.durability = other.durability; } if (other.isSetCellVisibility()) { this.cellVisibility = new TCellVisibility(other.cellVisibility); } this.returnResults = other.returnResults; }
/** * Performs a deep copy on <i>other</i>. */ public TColumnIncrement(TColumnIncrement other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetFamily()) { this.family = org.apache.thrift.TBaseHelper.copyBinary(other.family); } if (other.isSetQualifier()) { this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(other.qualifier); } this.amount = other.amount; }
public void write(org.apache.thrift.protocol.TProtocol oprot, TColumnIncrement struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.family != null) { oprot.writeFieldBegin(FAMILY_FIELD_DESC); oprot.writeBinary(struct.family); oprot.writeFieldEnd(); } if (struct.qualifier != null) { oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); oprot.writeBinary(struct.qualifier); oprot.writeFieldEnd(); } if (struct.isSetAmount()) { oprot.writeFieldBegin(AMOUNT_FIELD_DESC); oprot.writeI64(struct.amount); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("TColumnIncrement("); boolean first = true; sb.append("family:"); if (this.family == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.family, sb); } first = false; if (!first) sb.append(", "); sb.append("qualifier:"); if (this.qualifier == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.qualifier, sb); } first = false; if (isSetAmount()) { if (!first) sb.append(", "); sb.append("amount:"); sb.append(this.amount); first = false; } sb.append(")"); return sb.toString(); }
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 setFieldValue(_Fields field, Object value) { switch (field) { case FAMILY: if (value == null) { unsetFamily(); } else { setFamily((ByteBuffer)value); } break; case QUALIFIER: if (value == null) { unsetQualifier(); } else { setQualifier((ByteBuffer)value); } break; case AMOUNT: if (value == null) { unsetAmount(); } else { setAmount((Long)value); } break; } }
return true; boolean this_present_family = true && this.isSetFamily(); boolean that_present_family = true && that.isSetFamily(); if (this_present_family || that_present_family) { if (!(this_present_family && that_present_family)) boolean this_present_qualifier = true && this.isSetQualifier(); boolean that_present_qualifier = true && that.isSetQualifier(); if (this_present_qualifier || that_present_qualifier) { if (!(this_present_qualifier && that_present_qualifier)) boolean this_present_amount = true && this.isSetAmount(); boolean that_present_amount = true && that.isSetAmount(); if (this_present_amount || that_present_amount) { if (!(this_present_amount && that_present_amount))