Class ChangeStreamContinuationToken
java.lang.Object
com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken
- All Implemented Interfaces:
Serializable
@InternalApi("Intended for use by the BigtableIO in apache/beam only.")
public abstract class ChangeStreamContinuationToken
extends Object
implements Serializable
A simple wrapper for
StreamContinuationToken
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(Range.ByteStringRange byteStringRange, String token) fromByteString
(com.google.protobuf.ByteString byteString) Get the partition of the current continuation token, represented by aRange.ByteStringRange
.getToken()
abstract com.google.bigtable.v2.StreamContinuationToken
com.google.protobuf.ByteString
-
Constructor Details
-
ChangeStreamContinuationToken
public ChangeStreamContinuationToken()
-
-
Method Details
-
create
@InternalApi("Intended for use by the BigtableIO in apache/beam only.") public static ChangeStreamContinuationToken create(@Nonnull Range.ByteStringRange byteStringRange, @Nonnull String token) -
fromByteString
@InternalApi("Intended for use by the BigtableIO in apache/beam only.") public static ChangeStreamContinuationToken fromByteString(com.google.protobuf.ByteString byteString) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
getTokenProto
-
getPartition
Get the partition of the current continuation token, represented by aRange.ByteStringRange
. -
getToken
-
toByteString
public com.google.protobuf.ByteString toByteString()
-