if (isSetReturnResults()) { if (!first) sb.append(", "); sb.append("returnResults:");
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) {
/** 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(); }
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 Append appendFromThrift(TAppend append) throws IOException { Append out = new Append(append.getRow()); for (TColumnValue column : append.getColumns()) { out.addColumn(column.getFamily(), column.getQualifier(), column.getValue()); } if (append.isSetAttributes()) { addAttributes(out, append.getAttributes()); } if (append.isSetDurability()) { out.setDurability(durabilityFromThrift(append.getDurability())); } if(append.getCellVisibility() != null) { out.setCellVisibility(new CellVisibility(append.getCellVisibility().getExpression())); } if (append.isSetReturnResults()) { out.setReturnResults(append.isReturnResults()); } return out; }