Interface TransactionLogSynchronizer
-
- All Known Implementing Classes:
AzureTransactionLogSynchronizer,NoIsolationSynchronizer,S3TransactionLogSynchronizer
public interface TransactionLogSynchronizer
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
write
void write(ConnectorSession session, String clusterId, org.apache.hadoop.fs.Path newLogEntryPath, byte[] entryContents)
Performs atomic write of transaction log entry file.- Throws:
TransactionConflictException- If file cannot be written because of conflict with other transactionRuntimeException- If some other unexpected error occurs
-
isUnsafe
boolean isUnsafe()
Whether or not writes using this Synchronizer need to be enabled with the "delta.enable-non-concurrent-writes" config property.- Returns:
- False if collision detection for writes from multiple clusters is supported, else true.
-
-