Class PartitionMetadataDao.TransactionResult<T>

java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.dao.PartitionMetadataDao.TransactionResult<T>
Type Parameters:
T - the return type of the transaction execution
Enclosing class:
PartitionMetadataDao

public static class PartitionMetadataDao.TransactionResult<T> extends Object
Represents a result from executing a Cloud Spanner read / write transaction. It encapsulates the return from the transaction function and a commit timestamp.
  • Constructor Details

    • TransactionResult

      public TransactionResult(@Nullable T result, com.google.cloud.Timestamp commitTimestamp)
  • Method Details

    • getResult

      @Nullable public T getResult()
      Returns the result of the transaction execution.
    • getCommitTimestamp

      public com.google.cloud.Timestamp getCommitTimestamp()
      Returns the commit timestamp of the read / write transaction.
    • toString

      public String toString()
      Overrides:
      toString in class Object