@InternalApi public class MutateRowsBatchingDescriptor extends Object implements BatchingDescriptor<com.google.bigtable.v2.MutateRowsRequest,Void>
BatchingDescriptor
to split individual results in a MutateRowsException
. Each individual result will be matched with its issuer.
This class is considered an internal implementation detail and not meant to be used by applications directly.
Constructor and Description |
---|
MutateRowsBatchingDescriptor() |
Modifier and Type | Method and Description |
---|---|
long |
countBytes(com.google.bigtable.v2.MutateRowsRequest request) |
long |
countElements(com.google.bigtable.v2.MutateRowsRequest request) |
PartitionKey |
getBatchPartitionKey(com.google.bigtable.v2.MutateRowsRequest request)
Return the target table name.
|
RequestBuilder<com.google.bigtable.v2.MutateRowsRequest> |
getRequestBuilder() |
void |
splitException(Throwable throwable,
Collection<? extends BatchedRequestIssuer<Void>> batch) |
void |
splitResponse(Void batchResponse,
Collection<? extends BatchedRequestIssuer<Void>> batch) |
public PartitionKey getBatchPartitionKey(com.google.bigtable.v2.MutateRowsRequest request)
getBatchPartitionKey
in interface BatchingDescriptor<com.google.bigtable.v2.MutateRowsRequest,Void>
public RequestBuilder<com.google.bigtable.v2.MutateRowsRequest> getRequestBuilder()
getRequestBuilder
in interface BatchingDescriptor<com.google.bigtable.v2.MutateRowsRequest,Void>
public void splitResponse(Void batchResponse, Collection<? extends BatchedRequestIssuer<Void>> batch)
splitResponse
in interface BatchingDescriptor<com.google.bigtable.v2.MutateRowsRequest,Void>
public void splitException(Throwable throwable, Collection<? extends BatchedRequestIssuer<Void>> batch)
splitException
in interface BatchingDescriptor<com.google.bigtable.v2.MutateRowsRequest,Void>
public long countElements(com.google.bigtable.v2.MutateRowsRequest request)
countElements
in interface BatchingDescriptor<com.google.bigtable.v2.MutateRowsRequest,Void>
public long countBytes(com.google.bigtable.v2.MutateRowsRequest request)
countBytes
in interface BatchingDescriptor<com.google.bigtable.v2.MutateRowsRequest,Void>
Copyright © 2019 Google LLC. All rights reserved.