@DefaultCoder(value=AvroCoder.class) public class ChildPartitionsRecord extends java.lang.Object implements ChangeStreamRecord
When receiving this record, the caller should perform new queries using the child partition tokens received.
Constructor and Description |
---|
ChildPartitionsRecord(com.google.cloud.Timestamp startTimestamp,
java.lang.String recordSequence,
java.util.List<ChildPartition> childPartitions,
ChangeStreamRecordMetadata metadata)
Constructs a child partitions record containing one or more child partitions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<ChildPartition> |
getChildPartitions()
List of child partitions yielded within this record.
|
java.lang.String |
getRecordSequence()
Indicates the order in which a record was put to the stream.
|
com.google.cloud.Timestamp |
getRecordTimestamp()
Returns the timestamp that which this partition started being valid in Cloud Spanner.
|
com.google.cloud.Timestamp |
getStartTimestamp()
It is the partition_start_time of the child partition token.
|
int |
hashCode() |
java.lang.String |
toString() |
public ChildPartitionsRecord(com.google.cloud.Timestamp startTimestamp, java.lang.String recordSequence, java.util.List<ChildPartition> childPartitions, ChangeStreamRecordMetadata metadata)
startTimestamp
- the timestamp which this partition started being valid in Cloud SpannerrecordSequence
- the order within a partition and a transaction in which the record was
put to the streamchildPartitions
- child partition tokens emitted within this recordmetadata
- connector execution metadata for the given recordpublic com.google.cloud.Timestamp getRecordTimestamp()
getRecordTimestamp
in interface ChangeStreamRecord
public com.google.cloud.Timestamp getStartTimestamp()
public java.lang.String getRecordSequence()
public java.util.List<ChildPartition> getChildPartitions()
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