@Internal public class ChangeStreamDao extends java.lang.Object
Constructor and Description |
---|
ChangeStreamDao(com.google.cloud.bigtable.data.v2.BigtableDataClient dataClient,
java.lang.String tableId) |
Modifier and Type | Method and Description |
---|---|
java.util.List<com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange> |
generateInitialChangeStreamPartitions()
Returns the result from GenerateInitialChangeStreamPartitions API.
|
com.google.api.gax.rpc.ServerStream<com.google.cloud.bigtable.data.v2.models.ChangeStreamRecord> |
readChangeStreamPartition(PartitionRecord partition,
StreamProgress streamProgress,
Instant endTime,
Duration heartbeatDuration)
Streams a partition.
|
public ChangeStreamDao(com.google.cloud.bigtable.data.v2.BigtableDataClient dataClient, java.lang.String tableId)
public java.util.List<com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange> generateInitialChangeStreamPartitions()
public com.google.api.gax.rpc.ServerStream<com.google.cloud.bigtable.data.v2.models.ChangeStreamRecord> readChangeStreamPartition(PartitionRecord partition, StreamProgress streamProgress, @Nullable Instant endTime, Duration heartbeatDuration) throws java.io.IOException
partition
- the partition to streamstreamProgress
- may contain a continuation token for the stream requestendTime
- time to end the stream, may be nullheartbeatDuration
- period between heartbeat messagesjava.io.IOException
- if the stream could not be started