if (isSetDurability()) { if (!first) sb.append(", "); sb.append("durability:");
/** 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 TIMESTAMP: return isSetTimestamp(); case ATTRIBUTES: return isSetAttributes(); case DURABILITY: return isSetDurability(); case CELL_VISIBILITY: return isSetCellVisibility(); } throw new java.lang.IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(isSetDurability()).compareTo(other.isSetDurability()); if (lastComparison != 0) { return lastComparison; if (isSetDurability()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durability, other.durability); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public TPut(TPut 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.timestamp = other.timestamp; 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); } }
if (struct.isSetDurability()) { oprot.writeFieldBegin(DURABILITY_FIELD_DESC); oprot.writeI32(struct.durability.getValue());
optionals.set(1); if (struct.isSetDurability()) { optionals.set(2); if (struct.isSetDurability()) { oprot.writeI32(struct.durability.getValue());
@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 + ((isSetTimestamp()) ? 131071 : 524287); if (isSetTimestamp()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); if (isSetAttributes()) hashCode = hashCode * 8191 + attributes.hashCode(); hashCode = hashCode * 8191 + ((isSetDurability()) ? 131071 : 524287); if (isSetDurability()) hashCode = hashCode * 8191 + durability.getValue(); hashCode = hashCode * 8191 + ((isSetCellVisibility()) ? 131071 : 524287); if (isSetCellVisibility()) hashCode = hashCode * 8191 + cellVisibility.hashCode(); return hashCode; }
boolean this_present_durability = true && this.isSetDurability(); boolean that_present_durability = true && that.isSetDurability(); if (this_present_durability || that_present_durability) { if (!(this_present_durability && that_present_durability))
if (in.isSetDurability()) { out.setDurability(durabilityFromThrift(in.getDurability()));
@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); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); list.add(present_attributes); if (present_attributes) list.add(attributes); boolean present_durability = true && (isSetDurability()); list.add(present_durability); if (present_durability) list.add(durability.getValue()); boolean present_cellVisibility = true && (isSetCellVisibility()); list.add(present_cellVisibility); if (present_cellVisibility) list.add(cellVisibility); return list.hashCode(); }
if (isSetDurability()) { if (!first) sb.append(", "); sb.append("durability:");
if (isSetDurability()) { if (!first) sb.append(", "); sb.append("durability:");
@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); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); list.add(present_attributes); if (present_attributes) list.add(attributes); boolean present_durability = true && (isSetDurability()); list.add(present_durability); if (present_durability) list.add(durability.getValue()); boolean present_cellVisibility = true && (isSetCellVisibility()); list.add(present_cellVisibility); if (present_cellVisibility) list.add(cellVisibility); return list.hashCode(); }
/** 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(); case TIMESTAMP: return isSetTimestamp(); case ATTRIBUTES: return isSetAttributes(); case DURABILITY: return isSetDurability(); case CELL_VISIBILITY: return isSetCellVisibility(); } 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(); case TIMESTAMP: return isSetTimestamp(); case ATTRIBUTES: return isSetAttributes(); case DURABILITY: return isSetDurability(); case CELL_VISIBILITY: return isSetCellVisibility(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TPut(TPut other) { __isset_bitfield = other.__isset_bitfield; 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; } this.timestamp = other.timestamp; if (other.isSetAttributes()) { Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { this.durability = other.durability; } if (other.isSetCellVisibility()) { this.cellVisibility = new TCellVisibility(other.cellVisibility); } }
/** * Performs a deep copy on <i>other</i>. */ public TPut(TPut other) { __isset_bitfield = other.__isset_bitfield; 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; } this.timestamp = other.timestamp; if (other.isSetAttributes()) { Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { this.durability = other.durability; } if (other.isSetCellVisibility()) { this.cellVisibility = new TCellVisibility(other.cellVisibility); } }
optionals.set(1); if (struct.isSetDurability()) { optionals.set(2); if (struct.isSetDurability()) { oprot.writeI32(struct.durability.getValue());
optionals.set(1); if (struct.isSetDurability()) { optionals.set(2); if (struct.isSetDurability()) { oprot.writeI32(struct.durability.getValue());
boolean this_present_durability = true && this.isSetDurability(); boolean that_present_durability = true && that.isSetDurability(); if (this_present_durability || that_present_durability) { if (!(this_present_durability && that_present_durability))