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 SerializableA simple wrapper forStreamContinuationToken.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeStreamContinuationToken()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ChangeStreamContinuationTokencreate(Range.ByteStringRange byteStringRange, String token)static ChangeStreamContinuationTokenfromByteString(com.google.protobuf.ByteString byteString)Range.ByteStringRangegetPartition()Get the partition of the current continuation token, represented by aRange.ByteStringRange.StringgetToken()abstract StreamContinuationTokengetTokenProto()com.google.protobuf.ByteStringtoByteString()
-
-
-
Method Detail
-
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
@Nonnull public abstract StreamContinuationToken getTokenProto()
-
getPartition
public Range.ByteStringRange getPartition()
Get the partition of the current continuation token, represented by aRange.ByteStringRange.
-
getToken
public String getToken()
-
toByteString
public com.google.protobuf.ByteString toByteString()
-
-