Class ChangeStreamRecordMetadata
java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.model.ChangeStreamRecordMetadata
- All Implemented Interfaces:
Serializable
@DefaultCoder(AvroCoder.class)
public class ChangeStreamRecordMetadata
extends Object
implements Serializable
Holds internal execution metrics / metadata for the processed
ChangeStreamRecord.- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe number of records read in the partition change stream query before reading this record.com.google.cloud.TimestampThe time at which this partition was first detected and created in the metadata table.com.google.cloud.TimestampThe end time for the partition change stream query, which produced this record.com.google.cloud.TimestampThe time at which the connector started processing this partition.com.google.cloud.TimestampThe time at which this partition was scheduled to be queried.com.google.cloud.TimestampThe start time for the partition change stream query, which produced this record.The partition token that produced this change stream record.com.google.cloud.TimestampThe time that the change stream query which produced this record started.com.google.cloud.TimestampThe time at which the record was fully read.com.google.cloud.TimestampThe time at which the record finished streaming.com.google.cloud.TimestampThe time at which the record started to be streamed.com.google.cloud.TimestampThe Cloud Spanner timestamp time when this record occurred.longThe total streaming time (in millis) for this record.inthashCode()toString()
-
Method Details
-
getPartitionToken
The partition token that produced this change stream record. -
getRecordTimestamp
public com.google.cloud.Timestamp getRecordTimestamp()The Cloud Spanner timestamp time when this record occurred. -
getPartitionStartTimestamp
public com.google.cloud.Timestamp getPartitionStartTimestamp()The start time for the partition change stream query, which produced this record. -
getPartitionEndTimestamp
public com.google.cloud.Timestamp getPartitionEndTimestamp()The end time for the partition change stream query, which produced this record. -
getPartitionCreatedAt
public com.google.cloud.Timestamp getPartitionCreatedAt()The time at which this partition was first detected and created in the metadata table. -
getPartitionScheduledAt
The time at which this partition was scheduled to be queried. -
getPartitionRunningAt
The time at which the connector started processing this partition. -
getQueryStartedAt
public com.google.cloud.Timestamp getQueryStartedAt()The time that the change stream query which produced this record started. -
getRecordStreamStartedAt
public com.google.cloud.Timestamp getRecordStreamStartedAt()The time at which the record started to be streamed. -
getRecordStreamEndedAt
public com.google.cloud.Timestamp getRecordStreamEndedAt()The time at which the record finished streaming. -
getRecordReadAt
public com.google.cloud.Timestamp getRecordReadAt()The time at which the record was fully read. -
getTotalStreamTimeMillis
public long getTotalStreamTimeMillis()The total streaming time (in millis) for this record. -
getNumberOfRecordsRead
public long getNumberOfRecordsRead()The number of records read in the partition change stream query before reading this record. -
equals
-
hashCode
public int hashCode() -
toString
-
newBuilder
-