if (isSetReturnResults()) { if (!first) sb.append(", "); sb.append("returnResults:");
/** 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 COLUMNS: return isSetColumns(); case ATTRIBUTES: return isSetAttributes(); case DURABILITY: return isSetDurability(); case CELL_VISIBILITY: return isSetCellVisibility(); case RETURN_RESULTS: return isSetReturnResults(); } throw new java.lang.IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(isSetReturnResults()).compareTo(other.isSetReturnResults()); if (lastComparison != 0) { return lastComparison; if (isSetReturnResults()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnResults, other.returnResults); if (lastComparison != 0) {
if (struct.isSetReturnResults()) { oprot.writeFieldBegin(RETURN_RESULTS_FIELD_DESC); oprot.writeBool(struct.returnResults);
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); if (isSetRow()) hashCode = hashCode * 8191 + row.hashCode(); hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); if (isSetColumns()) hashCode = hashCode * 8191 + columns.hashCode(); 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(); hashCode = hashCode * 8191 + ((isSetReturnResults()) ? 131071 : 524287); if (isSetReturnResults()) hashCode = hashCode * 8191 + ((returnResults) ? 131071 : 524287); return hashCode; }
optionals.set(2); if (struct.isSetReturnResults()) { optionals.set(3); struct.cellVisibility.write(oprot); if (struct.isSetReturnResults()) { oprot.writeBool(struct.returnResults);
boolean this_present_returnResults = true && this.isSetReturnResults(); boolean that_present_returnResults = true && that.isSetReturnResults(); if (this_present_returnResults || that_present_returnResults) { if (!(this_present_returnResults && that_present_returnResults))
public static Increment incrementFromThrift(TIncrement in) throws IOException { Increment out = new Increment(in.getRow()); for (TColumnIncrement column : in.getColumns()) { out.addColumn(column.getFamily(), column.getQualifier(), column.getAmount()); } if (in.isSetAttributes()) { addAttributes(out,in.getAttributes()); } if (in.isSetDurability()) { out.setDurability(durabilityFromThrift(in.getDurability())); } if(in.getCellVisibility() != null) { out.setCellVisibility(new CellVisibility(in.getCellVisibility().getExpression())); } if (in.isSetReturnResults()) { out.setReturnResults(in.isReturnResults()); } return out; }