@Internal public class MetadataTableEncoder extends java.lang.Object
Constructor and Description |
---|
MetadataTableEncoder() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isRowLocked(com.google.cloud.bigtable.data.v2.models.Row row)
Returns true if row is locked.
|
static java.util.List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> |
parseInitialContinuationTokens(com.google.cloud.bigtable.data.v2.models.Row row)
Return a list of initial token from a row.
|
static @Nullable java.lang.String |
parseLockUuid(com.google.cloud.bigtable.data.v2.models.Row row)
Returns the uuid from a row.
|
static @Nullable java.lang.String |
parseTokenFromRow(com.google.cloud.bigtable.data.v2.models.Row row)
Read the continuation token cell of a row from ReadRows.
|
static @Nullable Instant |
parseWatermarkFromRow(com.google.cloud.bigtable.data.v2.models.Row row)
Read the watermark cell of a row from ReadRows.
|
static @Nullable Instant |
parseWatermarkLastUpdatedFromRow(com.google.cloud.bigtable.data.v2.models.Row row)
Return the timestamp (the time it was updated) of the watermark cell.
|
public static @Nullable Instant parseWatermarkFromRow(com.google.cloud.bigtable.data.v2.models.Row row)
row
- row to extract the watermark frompublic static @Nullable Instant parseWatermarkLastUpdatedFromRow(com.google.cloud.bigtable.data.v2.models.Row row)
row
- row to extract the timestamp frompublic static @Nullable java.lang.String parseTokenFromRow(com.google.cloud.bigtable.data.v2.models.Row row)
row
- to extract the token frompublic static boolean isRowLocked(com.google.cloud.bigtable.data.v2.models.Row row)
row
- to evaluate if it's lockedpublic static @Nullable java.lang.String parseLockUuid(com.google.cloud.bigtable.data.v2.models.Row row)
row
- to extract the uuidpublic static java.util.List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> parseInitialContinuationTokens(com.google.cloud.bigtable.data.v2.models.Row row) throws com.google.protobuf.InvalidProtocolBufferException
row
- to extract the initial tokenscom.google.protobuf.InvalidProtocolBufferException
- when failed to parse tokens.