public class HoodieLogFormatWriter extends Object implements HoodieLogFormat.Writer
| Modifier and Type | Method and Description |
|---|---|
AppendResult |
appendBlock(HoodieLogBlock block)
Append Block to a log file.
|
AppendResult |
appendBlocks(List<HoodieLogBlock> blocks)
Appends the list of blocks to a logfile.
|
void |
close() |
long |
getCurrentSize() |
org.apache.hadoop.fs.FileSystem |
getFs() |
HoodieLogFile |
getLogFile() |
long |
getSizeThreshold() |
public org.apache.hadoop.fs.FileSystem getFs()
public HoodieLogFile getLogFile()
getLogFile in interface HoodieLogFormat.WriterHoodieLogFile being written to.public long getSizeThreshold()
public AppendResult appendBlock(HoodieLogBlock block) throws IOException, InterruptedException
HoodieLogFormat.WriterappendBlock in interface HoodieLogFormat.WriterAppendResult containing result of the append.IOExceptionInterruptedExceptionpublic AppendResult appendBlocks(List<HoodieLogBlock> blocks) throws IOException, InterruptedException
HoodieLogFormat.WriterappendBlocks in interface HoodieLogFormat.WriterAppendResult containing result of the append.IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getCurrentSize()
throws IOException
getCurrentSize in interface HoodieLogFormat.WriterIOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.