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 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 ChangeStreamContinuationToken
create(Range.ByteStringRange byteStringRange, String token)
static ChangeStreamContinuationToken
fromByteString(com.google.protobuf.ByteString byteString)
Range.ByteStringRange
getPartition()
Get the partition of the current continuation token, represented by aRange.ByteStringRange
.String
getToken()
abstract StreamContinuationToken
getTokenProto()
com.google.protobuf.ByteString
toByteString()
-
-
-
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()
-
-