Class ChangeStreamRecordMetadata
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.spanner.changestreams.model.ChangeStreamRecordMetadata
-
- All Implemented Interfaces:
java.io.Serializable
@DefaultCoder(org.apache.beam.sdk.extensions.avro.coders.AvroCoder.class) public class ChangeStreamRecordMetadata extends java.lang.Object implements java.io.SerializableHolds internal execution metrics / metadata for the processedChangeStreamRecord.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChangeStreamRecordMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)longgetNumberOfRecordsRead()The number of records read in the partition change stream query before reading this record.com.google.cloud.TimestampgetPartitionCreatedAt()The time at which this partition was first detected and created in the metadata table.com.google.cloud.TimestampgetPartitionEndTimestamp()The end time for the partition change stream query, which produced this record.com.google.cloud.TimestampgetPartitionRunningAt()The time at which the connector started processing this partition.com.google.cloud.TimestampgetPartitionScheduledAt()The time at which this partition was scheduled to be queried.com.google.cloud.TimestampgetPartitionStartTimestamp()The start time for the partition change stream query, which produced this record.java.lang.StringgetPartitionToken()The partition token that produced this change stream record.com.google.cloud.TimestampgetQueryStartedAt()The time that the change stream query which produced this record started.com.google.cloud.TimestampgetRecordReadAt()The time at which the record was fully read.com.google.cloud.TimestampgetRecordStreamEndedAt()The time at which the record finished streaming.com.google.cloud.TimestampgetRecordStreamStartedAt()The time at which the record started to be streamed.com.google.cloud.TimestampgetRecordTimestamp()The Cloud Spanner timestamp time when this record occurred.longgetTotalStreamTimeMillis()The total streaming time (in millis) for this record.inthashCode()static ChangeStreamRecordMetadata.BuildernewBuilder()java.lang.StringtoString()
-
-
-
Method Detail
-
getPartitionToken
public java.lang.String 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
@Nullable public com.google.cloud.Timestamp getPartitionScheduledAt()
The time at which this partition was scheduled to be queried.
-
getPartitionRunningAt
@Nullable public com.google.cloud.Timestamp 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
public boolean equals(@Nullable java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
newBuilder
public static ChangeStreamRecordMetadata.Builder newBuilder()
-
-