@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) |
void |
setWALTrailer(WALProtos.WALTrailer walTrailer)
Sets HLog's WALTrailer.
|
void |
sync() |
initializeCompressionContext
public void init(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public void append(HLog.Entry entry) throws IOException
IOException
public void close() throws IOException
IOException
public void sync() throws IOException
IOException
public long getLength() throws IOException
IOException
public org.apache.hadoop.fs.FSDataOutputStream getStream()
public void setWALTrailer(WALProtos.WALTrailer walTrailer)
HLog.Writer
walTrailer
- trailer to append to WAL.Copyright © 2013 The Apache Software Foundation. All rights reserved.