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).| 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() |
public void init(FileSystem fs,
Path path,
Configuration conf,
boolean overwritable)
throws java.io.IOException
java.io.IOExceptionpublic void append(WAL.Entry entry)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic void sync()
throws java.io.IOException
java.io.IOExceptionpublic long getLength()
throws java.io.IOException
java.io.IOExceptionpublic FSDataOutputStream getWriterFSDataOutputStream()