@InternalApi(value="Intended for use by the BigtableIO in apache/beam only.") public final class ReadChangeStreamQuery extends Object implements Serializable, Cloneable
| Modifier and Type | Method and Description |
|---|---|
protected ReadChangeStreamQuery |
clone() |
ReadChangeStreamQuery |
continuationTokens(List<ChangeStreamContinuationToken> changeStreamContinuationTokens)
Sets the stream continuation tokens to read the change stream.
|
static ReadChangeStreamQuery |
create(String tableId)
Constructs a new ReadChangeStreamQuery object for the specified table id.
|
ReadChangeStreamQuery |
endTime(org.threeten.bp.Instant value)
Sets the endTime to read the change stream.
|
boolean |
equals(Object o) |
static ReadChangeStreamQuery |
fromProto(ReadChangeStreamRequest request)
Wraps the protobuf
ReadChangeStreamRequest. |
int |
hashCode() |
ReadChangeStreamQuery |
heartbeatDuration(org.threeten.bp.Duration duration)
Sets the heartbeat duration for the change stream.
|
ReadChangeStreamQuery |
startTime(org.threeten.bp.Instant value)
Sets the startTime to read the change stream.
|
ReadChangeStreamQuery |
streamPartition(com.google.protobuf.ByteString start,
com.google.protobuf.ByteString end)
Adds a partition.
|
ReadChangeStreamQuery |
streamPartition(Range.ByteStringRange range)
Adds a partition.
|
ReadChangeStreamQuery |
streamPartition(RowRange rowRange)
Adds a partition.
|
ReadChangeStreamQuery |
streamPartition(String start,
String end)
Adds a partition.
|
ReadChangeStreamRequest |
toProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
Creates the request protobuf.
|
String |
toString() |
public static ReadChangeStreamQuery create(String tableId)
BigtableDataSettings.public ReadChangeStreamQuery streamPartition(@Nonnull RowRange rowRange)
rowRange - Represents the partition in the form [startKey, endKey). startKey can be null
to represent negative infinity. endKey can be null to represent positive infinity.public ReadChangeStreamQuery streamPartition(String start, String end)
start - The beginning of the range (inclusive). Can be null to represent negative
infinity.end - The end of the range (exclusive). Can be null to represent positive infinity.public ReadChangeStreamQuery streamPartition(@Nullable com.google.protobuf.ByteString start, @Nullable com.google.protobuf.ByteString end)
start - The beginning of the range (inclusive). Can be null to represent negative
infinity.end - The end of the range (exclusive). Can be null to represent positive infinity.public ReadChangeStreamQuery streamPartition(Range.ByteStringRange range)
public ReadChangeStreamQuery startTime(org.threeten.bp.Instant value)
public ReadChangeStreamQuery endTime(org.threeten.bp.Instant value)
public ReadChangeStreamQuery continuationTokens(List<ChangeStreamContinuationToken> changeStreamContinuationTokens)
public ReadChangeStreamQuery heartbeatDuration(org.threeten.bp.Duration duration)
@InternalApi(value="Used in Changestream beam pipeline.") public ReadChangeStreamRequest toProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
public static ReadChangeStreamQuery fromProto(@Nonnull ReadChangeStreamRequest request)
ReadChangeStreamRequest.
WARNING: Please note that the project id & instance id in the table name will be overwritten by the configuration in the BigtableDataClient.
protected ReadChangeStreamQuery clone()
Copyright © 2023 Google LLC. All rights reserved.