Class BoundStatement (2.58.2)

public class BoundStatement

A bound SQL statement that can be executed by calling com.google.cloud.bigtable.data.v2.BigtableDataClient#executeQuery(BoundStatement).

It is an error to bind a statement with unset parameters.

BoundStatements are constructed using a Builder and calling setTypeParam(String paramName, Type value) for the appropriate type. For example:


 BoundStatementt boundStatement = preparedStatement.bind()
     .setBytesParam("qualifier", ByteString.copyFromUtf8("test"))
     .setBytesParam("key", ByteString.copyFromUtf8("testKey"))
     .build();
 

Inheritance

java.lang.Object > BoundStatement

Methods

assertUsingSameStub(EnhancedBigtableStub stub)

public void assertUsingSameStub(EnhancedBigtableStub stub)

Asserts that the given stub matches the stub used for plan refresh. This is necessary to ensure that the request comes from the same client and uses the same configuration.

This is considered an internal implementation detail and not meant to be used by applications

Parameter
Name Description
stub com.google.cloud.bigtable.data.v2.stub.EnhancedBigtableStub

getLatestPrepareResponse()

public PreparedStatementImpl.PreparedQueryData getLatestPrepareResponse()

Gets the most recent version of the PrepareResponse associated with this query.

This is considered an internal implementation detail and should not be used by applications.

Returns
Type Description
com.google.cloud.bigtable.data.v2.internal.PreparedStatementImpl.PreparedQueryData

markExpiredAndStartRefresh(PreparedStatementImpl.PreparedQueryVersion expiredPreparedQueryVersion)

public PreparedStatementImpl.PreparedQueryData markExpiredAndStartRefresh(PreparedStatementImpl.PreparedQueryVersion expiredPreparedQueryVersion)
Parameter
Name Description
expiredPreparedQueryVersion com.google.cloud.bigtable.data.v2.internal.PreparedStatementImpl.PreparedQueryVersion
Returns
Type Description
com.google.cloud.bigtable.data.v2.internal.PreparedStatementImpl.PreparedQueryData

toProto(ByteString preparedQuery, RequestContext requestContext, ByteString resumeToken)

public ExecuteQueryRequest toProto(ByteString preparedQuery, RequestContext requestContext, ByteString resumeToken)

Creates the request protobuf. This method is considered an internal implementation detail and not meant to be used by applications.

Parameters
Name Description
preparedQuery ByteString
requestContext com.google.cloud.bigtable.data.v2.internal.RequestContext
resumeToken ByteString
Returns
Type Description
com.google.bigtable.v2.ExecuteQueryRequest