public class HoodieLogFormatWriter extends Object implements HoodieLogFormat.Writer
| Constructor and Description |
|---|
HoodieLogFormatWriter(HoodieStorage storage,
HoodieLogFile logFile,
Integer bufferSize,
Short replication,
Long sizeThreshold,
String rolloverLogWriteToken,
HoodieLogFileWriteCallback logFileWriteCallback) |
| Modifier and Type | Method and Description |
|---|---|
AppendResult |
appendBlock(HoodieLogBlock block) |
AppendResult |
appendBlocks(List<HoodieLogBlock> blocks) |
void |
close() |
long |
getCurrentSize() |
HoodieLogFile |
getLogFile() |
long |
getSizeThreshold() |
public HoodieLogFormatWriter(HoodieStorage storage, HoodieLogFile logFile, Integer bufferSize, Short replication, Long sizeThreshold, String rolloverLogWriteToken, HoodieLogFileWriteCallback logFileWriteCallback)
public HoodieLogFile getLogFile()
getLogFile in interface HoodieLogFormat.Writerpublic long getSizeThreshold()
public AppendResult appendBlock(HoodieLogBlock block) throws IOException, InterruptedException
appendBlock in interface HoodieLogFormat.WriterIOExceptionInterruptedExceptionpublic AppendResult appendBlocks(List<HoodieLogBlock> blocks) throws IOException, InterruptedException
appendBlocks in interface HoodieLogFormat.WriterIOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getCurrentSize()
throws IOException
getCurrentSize in interface HoodieLogFormat.WriterIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.