Class StreamEventMetadata
java.lang.Object
io.debezium.connector.spanner.db.model.StreamEventMetadata
Contains all information about the spanner event
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate com.google.cloud.Timestampprivate com.google.cloud.Timestampprivate Stringprivate com.google.cloud.Timestampprivate com.google.cloud.Timestampprivate com.google.cloud.Timestampprivate com.google.cloud.Timestampprivate com.google.cloud.Timestampprivate long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateStreamEventMetadata(String partitionToken, com.google.cloud.Timestamp recordTimestamp, com.google.cloud.Timestamp partitionStartTimestamp, com.google.cloud.Timestamp partitionEndTimestamp, com.google.cloud.Timestamp queryStartedAt, com.google.cloud.Timestamp recordStreamStartedAt, com.google.cloud.Timestamp recordStreamEndedAt, com.google.cloud.Timestamp recordReadAt, long totalStreamTimeMillis, long numberOfRecordsRead) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe number of records read in the partition change stream query before reading this record.com.google.cloud.TimestampThe end time for the partition change stream query, which produced this record.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()static StreamEventMetadata.BuildertoString()
-
Field Details
-
partitionToken
-
recordTimestamp
private com.google.cloud.Timestamp recordTimestamp -
partitionStartTimestamp
private com.google.cloud.Timestamp partitionStartTimestamp -
partitionEndTimestamp
private com.google.cloud.Timestamp partitionEndTimestamp -
queryStartedAt
private com.google.cloud.Timestamp queryStartedAt -
recordStreamStartedAt
private com.google.cloud.Timestamp recordStreamStartedAt -
recordStreamEndedAt
private com.google.cloud.Timestamp recordStreamEndedAt -
recordReadAt
private com.google.cloud.Timestamp recordReadAt -
totalStreamTimeMillis
private long totalStreamTimeMillis -
numberOfRecordsRead
private long numberOfRecordsRead
-
-
Constructor Details
-
StreamEventMetadata
private StreamEventMetadata() -
StreamEventMetadata
private StreamEventMetadata(String partitionToken, com.google.cloud.Timestamp recordTimestamp, com.google.cloud.Timestamp partitionStartTimestamp, com.google.cloud.Timestamp partitionEndTimestamp, com.google.cloud.Timestamp queryStartedAt, com.google.cloud.Timestamp recordStreamStartedAt, com.google.cloud.Timestamp recordStreamEndedAt, com.google.cloud.Timestamp recordReadAt, long totalStreamTimeMillis, long numberOfRecordsRead)
-
-
Method Details
-
newBuilder
-
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. -
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
-