@InterfaceAudience.Private public class ProtobufLogWriter extends WriterBase
compressionContext| Constructor and Description |
|---|
ProtobufLogWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(HLog.Entry entry) |
void |
close() |
long |
getLength() |
org.apache.hadoop.fs.FSDataOutputStream |
getStream() |
void |
init(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf,
boolean overwritable) |
void |
setWALTrailer(WALProtos.WALTrailer walTrailer)
Sets HLog's WALTrailer.
|
void |
sync() |
initializeCompressionContextpublic void init(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf,
boolean overwritable)
throws IOException
IOExceptionpublic void append(HLog.Entry entry) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void sync()
throws IOException
IOExceptionpublic long getLength()
throws IOException
IOExceptionpublic org.apache.hadoop.fs.FSDataOutputStream getStream()
public void setWALTrailer(WALProtos.WALTrailer walTrailer)
HLog.WriterwalTrailer - trailer to append to WAL.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.