Class GcsTransactionLogSynchronizer

java.lang.Object
io.trino.plugin.deltalake.transactionlog.writer.GcsTransactionLogSynchronizer
All Implemented Interfaces:
TransactionLogSynchronizer

public class GcsTransactionLogSynchronizer extends Object implements TransactionLogSynchronizer
  • Constructor Details

    • GcsTransactionLogSynchronizer

      @Inject public GcsTransactionLogSynchronizer(GcsStorageFactory gcsStorageFactory)
  • Method Details

    • write

      public void write(ConnectorSession session, String clusterId, org.apache.hadoop.fs.Path newLogEntryPath, byte[] entryContents)
      Description copied from interface: TransactionLogSynchronizer
      Performs atomic write of transaction log entry file.
      Specified by:
      write in interface TransactionLogSynchronizer
    • isUnsafe

      public boolean isUnsafe()
      Description copied from interface: TransactionLogSynchronizer
      Whether or not writes using this Synchronizer need to be enabled with the "delta.enable-non-concurrent-writes" config property.
      Specified by:
      isUnsafe in interface TransactionLogSynchronizer
      Returns:
      False if collision detection for writes from multiple clusters is supported, else true.