@DefaultCoder(value=AvroCoder.class) public class ChangeStreamRecordMetadata extends java.lang.Object implements java.io.Serializable
ChangeStreamRecord
.Modifier and Type | Class and Description |
---|---|
static class |
ChangeStreamRecordMetadata.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
long |
getNumberOfRecordsRead()
The number of records read in the partition change stream query before reading this record.
|
com.google.cloud.Timestamp |
getPartitionCreatedAt()
The time at which this partition was first detected and created in the metadata table.
|
com.google.cloud.Timestamp |
getPartitionEndTimestamp()
The end time for the partition change stream query, which produced this record.
|
com.google.cloud.Timestamp |
getPartitionRunningAt()
The time at which the connector started processing this partition.
|
com.google.cloud.Timestamp |
getPartitionScheduledAt()
The time at which this partition was scheduled to be queried.
|
com.google.cloud.Timestamp |
getPartitionStartTimestamp()
The start time for the partition change stream query, which produced this record.
|
java.lang.String |
getPartitionToken()
The partition token that produced this change stream record.
|
com.google.cloud.Timestamp |
getQueryStartedAt()
The time that the change stream query which produced this record started.
|
com.google.cloud.Timestamp |
getRecordReadAt()
The time at which the record was fully read.
|
com.google.cloud.Timestamp |
getRecordStreamEndedAt()
The time at which the record finished streaming.
|
com.google.cloud.Timestamp |
getRecordStreamStartedAt()
The time at which the record started to be streamed.
|
com.google.cloud.Timestamp |
getRecordTimestamp()
The Cloud Spanner timestamp time when this record occurred.
|
long |
getTotalStreamTimeMillis()
The total streaming time (in millis) for this record.
|
int |
hashCode() |
static ChangeStreamRecordMetadata.Builder |
newBuilder() |
java.lang.String |
toString() |
public java.lang.String getPartitionToken()
public com.google.cloud.Timestamp getRecordTimestamp()
public com.google.cloud.Timestamp getPartitionStartTimestamp()
public com.google.cloud.Timestamp getPartitionEndTimestamp()
public com.google.cloud.Timestamp getPartitionCreatedAt()
@Nullable public com.google.cloud.Timestamp getPartitionScheduledAt()
@Nullable public com.google.cloud.Timestamp getPartitionRunningAt()
public com.google.cloud.Timestamp getQueryStartedAt()
public com.google.cloud.Timestamp getRecordStreamStartedAt()
public com.google.cloud.Timestamp getRecordStreamEndedAt()
public com.google.cloud.Timestamp getRecordReadAt()
public long getTotalStreamTimeMillis()
public long getNumberOfRecordsRead()
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static ChangeStreamRecordMetadata.Builder newBuilder()