Class ConsistencyRequest (2.78.1)

public abstract class ConsistencyRequest

Inheritance

java.lang.Object > ConsistencyRequest

Static Methods

forDataBoost(String tableId)

public static ConsistencyRequest forDataBoost(String tableId)
Parameter
Name Description
tableId String
Returns
Type Description
ConsistencyRequest

forReplication(String tableId)

public static ConsistencyRequest forReplication(String tableId)
Parameter
Name Description
tableId String
Returns
Type Description
ConsistencyRequest

forReplication(String tableId, String consistencyToken)

public static ConsistencyRequest forReplication(String tableId, String consistencyToken)

Creates a request to check consistency using an existing token.

Parameters
Name Description
tableId String

The table ID.

consistencyToken String

The token to check. Must not be null.

Returns
Type Description
ConsistencyRequest

forReplicationFromTableName(String tableName)

public static ConsistencyRequest forReplicationFromTableName(String tableName)
Parameter
Name Description
tableName String
Returns
Type Description
ConsistencyRequest

forReplicationFromTableName(String tableName, String consistencyToken)

public static ConsistencyRequest forReplicationFromTableName(String tableName, String consistencyToken)
Parameters
Name Description
tableName String
consistencyToken String
Returns
Type Description
ConsistencyRequest

Constructors

ConsistencyRequest()

public ConsistencyRequest()

Methods

getConsistencyToken()

public abstract String getConsistencyToken()

Internal accessor for the consistency token. Must be public to be accessible from the stub package.

Returns
Type Description
String

getMode()

protected abstract CheckConsistencyRequest.ModeCase getMode()
Returns
Type Description
com.google.bigtable.admin.v2.CheckConsistencyRequest.ModeCase

getTableId()

protected abstract String getTableId()
Returns
Type Description
String

isFullyQualified()

protected abstract boolean isFullyQualified()
Returns
Type Description
boolean

toCheckConsistencyProto(TableAdminRequestContext requestContext, String token)

public CheckConsistencyRequest toCheckConsistencyProto(TableAdminRequestContext requestContext, String token)

Creates a CheckConsistencyRequest proto. This variant is used when the ConsistencyRequest was initialized with a short table ID, relying on the TableAdminRequestContext to construct the fully qualified table name.

Parameters
Name Description
requestContext com.google.cloud.bigtable.data.v2.internal.TableAdminRequestContext
token String
Returns
Type Description
com.google.bigtable.admin.v2.CheckConsistencyRequest

toCheckConsistencyProto(String token)

public CheckConsistencyRequest toCheckConsistencyProto(String token)

Creates a CheckConsistencyRequest proto. This variant is used when the ConsistencyRequest was initialized with a fully qualified table name, eliminating the need for a request context.

Parameter
Name Description
token String
Returns
Type Description
com.google.bigtable.admin.v2.CheckConsistencyRequest

toGenerateTokenProto()

public GenerateConsistencyTokenRequest toGenerateTokenProto()

Creates a GenerateConsistencyTokenRequest proto. This variant is used when the ConsistencyRequest was initialized with a fully qualified table name, eliminating the need for a request context.

Returns
Type Description
com.google.bigtable.admin.v2.GenerateConsistencyTokenRequest

toGenerateTokenProto(TableAdminRequestContext requestContext)

public GenerateConsistencyTokenRequest toGenerateTokenProto(TableAdminRequestContext requestContext)

Creates a GenerateConsistencyTokenRequest proto. This variant is used when the ConsistencyRequest was initialized with a short table ID, relying on the TableAdminRequestContext to construct the fully qualified table name.

Parameter
Name Description
requestContext com.google.cloud.bigtable.data.v2.internal.TableAdminRequestContext
Returns
Type Description
com.google.bigtable.admin.v2.GenerateConsistencyTokenRequest