Class MetadataErrorHandlingCallable
java.lang.Object
com.google.api.gax.rpc.ServerStreamingCallable<ExecuteQueryCallContext,com.google.cloud.bigtable.data.v2.internal.SqlRow>
com.google.cloud.bigtable.data.v2.stub.sql.MetadataErrorHandlingCallable
@InternalApi("For internal use only")
public class MetadataErrorHandlingCallable
extends com.google.api.gax.rpc.ServerStreamingCallable<ExecuteQueryCallContext,com.google.cloud.bigtable.data.v2.internal.SqlRow>
Callable that handles passing execeptions through to the metadata future. This needs to be used
after all retries, so that non-retriable errors don't surface as errors to users accessing the
metadata.
In non-error cases the metadata future is resolved by the PlanRefreshingCallable
because the metadata needs to resolve before the SqlRowMerger starts yielding rows
This is considered an internal implementation detail and should not be used by applications.
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataErrorHandlingCallable(com.google.api.gax.rpc.ServerStreamingCallable<ExecuteQueryCallContext, com.google.cloud.bigtable.data.v2.internal.SqlRow> inner) -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(ExecuteQueryCallContext request, com.google.api.gax.rpc.ResponseObserver<com.google.cloud.bigtable.data.v2.internal.SqlRow> responseObserver, com.google.api.gax.rpc.ApiCallContext context) Methods inherited from class com.google.api.gax.rpc.ServerStreamingCallable
all, blockingServerStreamingCall, blockingServerStreamingCall, call, call, call, first, serverStreamingCall, serverStreamingCall, withDefaultCallContext
-
Constructor Details
-
MetadataErrorHandlingCallable
public MetadataErrorHandlingCallable(com.google.api.gax.rpc.ServerStreamingCallable<ExecuteQueryCallContext, com.google.cloud.bigtable.data.v2.internal.SqlRow> inner)
-
-
Method Details
-
call
public void call(ExecuteQueryCallContext request, com.google.api.gax.rpc.ResponseObserver<com.google.cloud.bigtable.data.v2.internal.SqlRow> responseObserver, com.google.api.gax.rpc.ApiCallContext context) - Specified by:
callin classcom.google.api.gax.rpc.ServerStreamingCallable<ExecuteQueryCallContext,com.google.cloud.bigtable.data.v2.internal.SqlRow>
-