@InterfaceAudience.LimitedPrivate(value="Configuration") public class SequenceFileLogWriter extends WriterBase
WALProvider.Writer that delegates to
SequenceFile.Writer. Legacy implementation only used for compat tests.
Note that because this class writes to the legacy hadoop-specific SequenceFile
format, users of it must write HLogKey keys and not arbitrary
WALKeys because the latter are not Writables (nor made to work with
Hadoop serialization).compressionContext, conf| Constructor and Description |
|---|
SequenceFileLogWriter()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(WAL.Entry entry) |
void |
close() |
long |
getLength() |
FSDataOutputStream |
getWriterFSDataOutputStream() |
void |
init(FileSystem fs,
Path path,
Configuration conf,
boolean overwritable) |
void |
sync() |
initializeCompressionContextpublic void init(FileSystem fs,
Path path,
Configuration conf,
boolean overwritable)
throws IOException
init in interface DefaultWALProvider.Writerinit in class WriterBaseIOExceptionpublic void append(WAL.Entry entry) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void sync()
throws IOException
IOExceptionpublic long getLength()
throws IOException
IOExceptionpublic FSDataOutputStream getWriterFSDataOutputStream()