Class AzureTransactionLogSynchronizer
- java.lang.Object
-
- io.trino.plugin.deltalake.transactionlog.writer.AzureTransactionLogSynchronizer
-
- All Implemented Interfaces:
TransactionLogSynchronizer
public class AzureTransactionLogSynchronizer extends Object implements TransactionLogSynchronizer
-
-
Constructor Summary
Constructors Constructor Description AzureTransactionLogSynchronizer(HdfsEnvironment hdfsEnvironment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisUnsafe()Whether or not writes using this Synchronizer need to be enabled with the "delta.enable-non-concurrent-writes" config property.voidwrite(ConnectorSession session, String clusterId, org.apache.hadoop.fs.Path newLogEntryPath, byte[] entryContents)Performs atomic write of transaction log entry file.
-
-
-
Constructor Detail
-
AzureTransactionLogSynchronizer
@Inject public AzureTransactionLogSynchronizer(HdfsEnvironment hdfsEnvironment)
-
-
Method Detail
-
write
public void write(ConnectorSession session, String clusterId, org.apache.hadoop.fs.Path newLogEntryPath, byte[] entryContents)
Description copied from interface:TransactionLogSynchronizerPerforms atomic write of transaction log entry file.- Specified by:
writein interfaceTransactionLogSynchronizer
-
isUnsafe
public boolean isUnsafe()
Description copied from interface:TransactionLogSynchronizerWhether or not writes using this Synchronizer need to be enabled with the "delta.enable-non-concurrent-writes" config property.- Specified by:
isUnsafein interfaceTransactionLogSynchronizer- Returns:
- False if collision detection for writes from multiple clusters is supported, else true.
-
-