@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
WALKey
s 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() |
initializeCompressionContext
public void init(FileSystem fs, Path path, Configuration conf, boolean overwritable) throws IOException
init
in interface DefaultWALProvider.Writer
init
in class WriterBase
IOException
public void append(WAL.Entry entry) throws IOException
IOException
public void close() throws IOException
IOException
public void sync() throws IOException
IOException
public long getLength() throws IOException
IOException
public FSDataOutputStream getWriterFSDataOutputStream()