Class StreamEventMetadata

java.lang.Object
io.debezium.connector.spanner.db.model.StreamEventMetadata

public class StreamEventMetadata extends Object
Contains all information about the spanner event
  • Field Details

    • partitionToken

      private String 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

      public static StreamEventMetadata.Builder newBuilder()
    • getPartitionToken

      public 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.
    • 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 Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object