/** * * * <pre> * A Row containing the new contents of all cells modified by the request. * </pre> * * <code>.google.bigtable.v2.Row row = 1;</code> */ public com.google.bigtable.v2.RowOrBuilder getRowOrBuilder() { return getRow(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (row_ != null) { output.writeMessage(1, getRow()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (row_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRow()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.v2.ReadModifyWriteRowResponse)) { return super.equals(obj); } com.google.bigtable.v2.ReadModifyWriteRowResponse other = (com.google.bigtable.v2.ReadModifyWriteRowResponse) obj; boolean result = true; result = result && (hasRow() == other.hasRow()); if (hasRow()) { result = result && getRow().equals(other.getRow()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRow()) { hash = (37 * hash) + ROW_FIELD_NUMBER; hash = (53 * hash) + getRow().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
private Row convertResponse(ReadModifyWriteRowResponse response) { ImmutableList.Builder<RowCell> cells = ImmutableList.builder(); for (Family family : response.getRow().getFamiliesList()) { for (Column column : family.getColumnsList()) { for (Cell cell : column.getCellsList()) { cells.add( RowCell.create( family.getName(), column.getQualifier(), cell.getTimestampMicros(), cell.getLabelsList(), cell.getValue())); } } } return Row.create(response.getRow().getKey(), cells.build()); } }
public Builder mergeFrom(com.google.bigtable.v2.ReadModifyWriteRowResponse other) { if (other == com.google.bigtable.v2.ReadModifyWriteRowResponse.getDefaultInstance()) return this; if (other.hasRow()) { mergeRow(other.getRow()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * A Row containing the new contents of all cells modified by the request. * </pre> * * <code>.google.bigtable.v2.Row row = 1;</code> */ public com.google.bigtable.v2.RowOrBuilder getRowOrBuilder() { return getRow(); }
/** * * * <pre> * A Row containing the new contents of all cells modified by the request. * </pre> * * <code>.google.bigtable.v2.Row row = 1;</code> */ public com.google.bigtable.v2.RowOrBuilder getRowOrBuilder() { return getRow(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (row_ != null) { output.writeMessage(1, getRow()); } }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (row_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRow()); } memoizedSize = size; return size; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (row_ != null) { output.writeMessage(1, getRow()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (row_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRow()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * {@inheritDoc} */ @Override public CompletableFuture<Result> increment(Increment increment) { return client.readModifyWriteRowAsync(hbaseAdapter.adapt(increment)) .thenApply(response -> Adapters.ROW_ADAPTER.adaptResponse(response.getRow())); }
/** * {@inheritDoc} */ @Override public CompletableFuture<Result> increment(Increment increment) { return client.readModifyWriteRowAsync(hbaseAdapter.adapt(increment)) .thenApply(response -> Adapters.ROW_ADAPTER.adaptResponse(response.getRow())); }
/** * {@inheritDoc} */ @Override public CompletableFuture<Result> append(Append append) { ReadModifyWriteRowRequest request = hbaseAdapter.adapt(append); Function<? super ReadModifyWriteRowResponse, ? extends Result> adaptRowFunction = response -> append.isReturnResults() ? Adapters.ROW_ADAPTER.adaptResponse(response.getRow()) : null; return client.readModifyWriteRowAsync(request).thenApply(adaptRowFunction); }
/** * {@inheritDoc} */ @Override public CompletableFuture<Result> append(Append append) { ReadModifyWriteRowRequest request = hbaseAdapter.adapt(append); Function<? super ReadModifyWriteRowResponse, ? extends Result> adaptRowFunction = response -> append.isReturnResults() ? Adapters.ROW_ADAPTER.adaptResponse(response.getRow()) : null; return client.readModifyWriteRowAsync(request).thenApply(adaptRowFunction); }
public Builder mergeFrom(com.google.bigtable.v2.ReadModifyWriteRowResponse other) { if (other == com.google.bigtable.v2.ReadModifyWriteRowResponse.getDefaultInstance()) return this; if (other.hasRow()) { mergeRow(other.getRow()); } onChanged(); return this; }
public Builder mergeFrom(com.google.bigtable.v2.ReadModifyWriteRowResponse other) { if (other == com.google.bigtable.v2.ReadModifyWriteRowResponse.getDefaultInstance()) return this; if (other.hasRow()) { mergeRow(other.getRow()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** {@inheritDoc} */ @Override public Result increment(Increment increment) throws IOException { LOG.trace("increment(Increment)"); Span span = TRACER.spanBuilder("BigtableTable.increment").startSpan(); try (Scope scope = TRACER.withSpan(span)) { ReadModifyWriteRowRequest request = hbaseAdapter.adapt(increment); return Adapters.ROW_ADAPTER.adaptResponse(client.readModifyWriteRow(request).getRow()); } catch (Throwable t) { span.setStatus(Status.UNKNOWN); throw logAndCreateIOException("increment", increment.getRow(), t); } finally { span.end(); } }