Interface SegmentMetadataTransaction

All Superinterfaces:
AutoCloseable, Closeable, DatasourceSegmentMetadataReader, DatasourceSegmentMetadataWriter, SegmentMetadataReadTransaction

public interface SegmentMetadataTransaction extends SegmentMetadataReadTransaction, DatasourceSegmentMetadataWriter
Represents a single transaction involving read/write of segment metadata into the metadata store. A transaction is associated with a single instance of a Handle and is meant to be short-lived.

A transaction CANNOT read back records it has written due to rollback restrictions in CachedSegmentMetadataTransaction.

  • Method Details

    • setRollbackOnly

      void setRollbackOnly()
      Marks this transaction to be rolled back.