Class S3NativeTransactionLogSynchronizer

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

public class S3NativeTransactionLogSynchronizer extends Object implements TransactionLogSynchronizer
The S3 Native synhcornizer is a TransactionLogSynchronizer for S3 that requires no other dependencies.
  • Field Details

    • LOG

      public static final io.airlift.log.Logger LOG
  • Constructor Details

  • Method Details

    • 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.
    • 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
    • parseEntryFilename

      public static String parseEntryFilename(String lockFilename)