@java.lang.Override public com.google.bigtable.v2.MutateRowResponse getDefaultInstanceForType() { return com.google.bigtable.v2.MutateRowResponse.getDefaultInstance(); }
public Builder mergeFrom(com.google.bigtable.v2.MutateRowResponse other) { if (other == com.google.bigtable.v2.MutateRowResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.bigtable.v2.MutateRowResponse.getDefaultInstance())) .setSchemaDescriptor(new BigtableMethodDescriptorSupplier("MutateRow")) .build();
@java.lang.Override public com.google.bigtable.v2.MutateRowResponse getDefaultInstanceForType() { return com.google.bigtable.v2.MutateRowResponse.getDefaultInstance(); }
public com.google.bigtable.v2.MutateRowResponse getDefaultInstanceForType() { return com.google.bigtable.v2.MutateRowResponse.getDefaultInstance(); }
public Builder mergeFrom(com.google.bigtable.v2.MutateRowResponse other) { if (other == com.google.bigtable.v2.MutateRowResponse.getDefaultInstance()) return this; onChanged(); return this; }
public Builder mergeFrom(com.google.bigtable.v2.MutateRowResponse other) { if (other == com.google.bigtable.v2.MutateRowResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private void handleEntries(Iterable<MutateRowsResponse.Entry> entries) { for (MutateRowsResponse.Entry entry : entries) { int index = (int) entry.getIndex(); if (index >= getRequestCount()) { LOG.error("Got extra status: %s", entry); continue; } SettableFuture<MutateRowResponse> future = futures.get(index); if (future == null) { LOG.warn("Could not find a future for index %d.", index); continue; } Status status = entry.getStatus(); if (status.getCode() == io.grpc.Status.Code.OK.value()) { future.set(MutateRowResponse.getDefaultInstance()); } else { future.setException(toException(status)); } } }
@Override public CompletionStage<MutateRowResponse> writeRecord( KV<ByteString, Iterable<Mutation>> record) { service.verifyTableExists(tableId); Map<ByteString, ByteString> table = service.getTable(tableId); ByteString key = record.getKey(); for (Mutation m : record.getValue()) { SetCell cell = m.getSetCell(); if (cell.getValue().isEmpty()) { CompletableFuture<MutateRowResponse> result = new CompletableFuture<>(); result.completeExceptionally(new IOException("cell value missing")); return result; } table.put(key, cell.getValue()); } return CompletableFuture.completedFuture(MutateRowResponse.getDefaultInstance()); }
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.bigtable.v2.MutateRowResponse.getDefaultInstance())) .setSchemaDescriptor(new BigtableMethodDescriptorSupplier("MutateRow")) .build();