Class WriteResults
java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.WriteResults
- All Implemented Interfaces:
Serializable
The results of committing a batch of mutations to Cloud Spanner via
SpannerIO.Write.withWriteResults().- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic WriteResultscreate(long mutationCount, @Nullable com.google.cloud.Timestamp commitTimestamp, @Nullable com.google.cloud.Timestamp snapshotTimestamp) booleanstatic WriteResultsfromCommitResponse(@Nullable com.google.cloud.spanner.CommitResponse commitResponse) @Nullable com.google.cloud.TimestampThe timestamp at which the write was committed in Cloud Spanner.longThe number of mutations applied by Cloud Spanner in this commit, or 0 if unavailable.@Nullable com.google.cloud.TimestampThe snapshot timestamp of the transaction, if returned by Cloud Spanner.inthashCode()toString()
-
Method Details
-
getMutationCount
public long getMutationCount()The number of mutations applied by Cloud Spanner in this commit, or 0 if unavailable. -
getCommitTimestamp
The timestamp at which the write was committed in Cloud Spanner. -
getSnapshotTimestamp
The snapshot timestamp of the transaction, if returned by Cloud Spanner. -
create
public static WriteResults create(long mutationCount, @Nullable com.google.cloud.Timestamp commitTimestamp, @Nullable com.google.cloud.Timestamp snapshotTimestamp) -
fromCommitResponse
public static WriteResults fromCommitResponse(@Nullable com.google.cloud.spanner.CommitResponse commitResponse) -
equals
-
hashCode
public int hashCode() -
toString
-