public static class ChangeStreamRecordMetadata.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ChangeStreamRecordMetadata |
build()
Builds the
ChangeStreamRecordMetadata . |
ChangeStreamRecordMetadata.Builder |
withNumberOfRecordsRead(long numberOfRecordsRead)
Sets the number of records read in the partition change stream query before reading this
record.
|
ChangeStreamRecordMetadata.Builder |
withPartitionCreatedAt(com.google.cloud.Timestamp partitionCreatedAt)
Sets the time at which this partition was first detected and created in the metadata table.
|
ChangeStreamRecordMetadata.Builder |
withPartitionEndTimestamp(com.google.cloud.Timestamp partitionEndTimestamp)
Sets the end time for the partition change stream query that originated this record.
|
ChangeStreamRecordMetadata.Builder |
withPartitionRunningAt(com.google.cloud.Timestamp partitionRunningAt)
Sets the time at which the connector started processing this partition.
|
ChangeStreamRecordMetadata.Builder |
withPartitionScheduledAt(com.google.cloud.Timestamp partitionScheduledAt)
Sets the time at which this partition was scheduled to be queried.
|
ChangeStreamRecordMetadata.Builder |
withPartitionStartTimestamp(com.google.cloud.Timestamp partitionStartTimestamp)
Sets the start time for the partition change stream query that originated this record.
|
ChangeStreamRecordMetadata.Builder |
withPartitionToken(java.lang.String partitionToken)
Sets the partition token where this record originated from.
|
ChangeStreamRecordMetadata.Builder |
withQueryStartedAt(com.google.cloud.Timestamp queryStartedAt)
Sets the time that the change stream query which produced this record started.
|
ChangeStreamRecordMetadata.Builder |
withRecordReadAt(com.google.cloud.Timestamp recordReadAt)
Sets the time at which the record was fully read.
|
ChangeStreamRecordMetadata.Builder |
withRecordStreamEndedAt(com.google.cloud.Timestamp recordStreamEndedAt)
Sets the time at which the record finished streaming.
|
ChangeStreamRecordMetadata.Builder |
withRecordStreamStartedAt(com.google.cloud.Timestamp recordStreamStartedAt)
Sets the time at which the record started to be streamed.
|
ChangeStreamRecordMetadata.Builder |
withRecordTimestamp(com.google.cloud.Timestamp recordTimestamp)
Sets the timestamp of when this record occurred.
|
ChangeStreamRecordMetadata.Builder |
withTotalStreamTimeMillis(long totalStreamTimeMillis)
Sets the total streaming time (in millis) for this record.
|
public ChangeStreamRecordMetadata.Builder withPartitionToken(java.lang.String partitionToken)
partitionToken
- the partition token to be setpublic ChangeStreamRecordMetadata.Builder withRecordTimestamp(com.google.cloud.Timestamp recordTimestamp)
recordTimestamp
- the timestamp to be setpublic ChangeStreamRecordMetadata.Builder withPartitionStartTimestamp(com.google.cloud.Timestamp partitionStartTimestamp)
partitionStartTimestamp
- the timestamp to be setpublic ChangeStreamRecordMetadata.Builder withPartitionEndTimestamp(com.google.cloud.Timestamp partitionEndTimestamp)
partitionEndTimestamp
- the timestamp to be setpublic ChangeStreamRecordMetadata.Builder withPartitionCreatedAt(com.google.cloud.Timestamp partitionCreatedAt)
partitionCreatedAt
- the timestamp to be setpublic ChangeStreamRecordMetadata.Builder withPartitionScheduledAt(@Nullable com.google.cloud.Timestamp partitionScheduledAt)
partitionScheduledAt
- the timestamp to be setpublic ChangeStreamRecordMetadata.Builder withPartitionRunningAt(@Nullable com.google.cloud.Timestamp partitionRunningAt)
partitionRunningAt
- the timestamp to be setpublic ChangeStreamRecordMetadata.Builder withQueryStartedAt(com.google.cloud.Timestamp queryStartedAt)
queryStartedAt
- the timestamp to be setpublic ChangeStreamRecordMetadata.Builder withRecordStreamStartedAt(com.google.cloud.Timestamp recordStreamStartedAt)
recordStreamStartedAt
- the timestamp to be setpublic ChangeStreamRecordMetadata.Builder withRecordStreamEndedAt(com.google.cloud.Timestamp recordStreamEndedAt)
recordStreamEndedAt
- the timestamp to be setpublic ChangeStreamRecordMetadata.Builder withRecordReadAt(com.google.cloud.Timestamp recordReadAt)
recordReadAt
- the timestamp to be setpublic ChangeStreamRecordMetadata.Builder withTotalStreamTimeMillis(long totalStreamTimeMillis)
totalStreamTimeMillis
- the total time in millispublic ChangeStreamRecordMetadata.Builder withNumberOfRecordsRead(long numberOfRecordsRead)
numberOfRecordsRead
- the number of records readpublic ChangeStreamRecordMetadata build()
ChangeStreamRecordMetadata
.