@InternalApi public class DummyBatchingDescriptor<RequestT,ResponseT> extends Object implements BatchingDescriptor<RequestT,ResponseT>
EnhancedBigtableStub.bulkMutateRowsCallable()
. The
settings are exposed to the user using the RowMutation
wrapper, but the actual descriptor works on
the underlying MutateRowsRequest
s. This class is used as a
placeholder for the settings and is replaced with the actual implementation of MutateRowsBatchingDescriptor
when constructing
the callable chain.
This class is considered an internal implementation detail and not meant to be used by applications.
Constructor and Description |
---|
DummyBatchingDescriptor() |
Modifier and Type | Method and Description |
---|---|
long |
countBytes(RequestT request) |
long |
countElements(RequestT request) |
PartitionKey |
getBatchPartitionKey(RequestT request) |
RequestBuilder<RequestT> |
getRequestBuilder() |
void |
splitException(Throwable throwable,
Collection<? extends BatchedRequestIssuer<ResponseT>> collection) |
void |
splitResponse(ResponseT response,
Collection<? extends BatchedRequestIssuer<ResponseT>> collection) |
public PartitionKey getBatchPartitionKey(RequestT request)
getBatchPartitionKey
in interface BatchingDescriptor<RequestT,ResponseT>
public RequestBuilder<RequestT> getRequestBuilder()
getRequestBuilder
in interface BatchingDescriptor<RequestT,ResponseT>
public void splitResponse(ResponseT response, Collection<? extends BatchedRequestIssuer<ResponseT>> collection)
splitResponse
in interface BatchingDescriptor<RequestT,ResponseT>
public void splitException(Throwable throwable, Collection<? extends BatchedRequestIssuer<ResponseT>> collection)
splitException
in interface BatchingDescriptor<RequestT,ResponseT>
public long countElements(RequestT request)
countElements
in interface BatchingDescriptor<RequestT,ResponseT>
public long countBytes(RequestT request)
countBytes
in interface BatchingDescriptor<RequestT,ResponseT>
Copyright © 2019 Google LLC. All rights reserved.