@InterfaceAudience.LimitedPrivate(value="Configuration") public class ProtobufLogWriter extends WriterBase
| Modifier and Type | Field and Description |
|---|---|
protected Codec.Encoder |
cellEncoder |
protected WALCellCodec.ByteStringCompressor |
compressor |
private static org.apache.commons.logging.Log |
LOG |
protected org.apache.hadoop.fs.FSDataOutputStream |
output |
private org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALTrailer |
trailer |
private int |
trailerWarnSize |
private boolean |
trailerWritten |
compressionContext, conf| Constructor and Description |
|---|
ProtobufLogWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(WAL.Entry entry) |
protected org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALHeader |
buildWALHeader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALHeader.Builder builder) |
(package private) org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALTrailer |
buildWALTrailer(org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALTrailer.Builder builder) |
void |
close() |
protected WALCellCodec |
getCodec(org.apache.hadoop.conf.Configuration conf,
CompressionContext compressionContext) |
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) |
protected void |
initAfterHeader(boolean doCompress) |
(package private) void |
setWALTrailer(org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALTrailer walTrailer) |
void |
sync() |
private void |
writeWALTrailer() |
initializeCompressionContextprivate static final org.apache.commons.logging.Log LOG
protected org.apache.hadoop.fs.FSDataOutputStream output
protected Codec.Encoder cellEncoder
protected WALCellCodec.ByteStringCompressor compressor
private boolean trailerWritten
private org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALTrailer trailer
private int trailerWarnSize
protected WALCellCodec getCodec(org.apache.hadoop.conf.Configuration conf, CompressionContext compressionContext) throws IOException
IOExceptionprotected org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALHeader buildWALHeader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALHeader.Builder builder)
throws IOException
IOExceptionpublic void init(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf,
boolean overwritable)
throws IOException
init in interface DefaultWALProvider.Writerinit in class WriterBaseIOExceptionprotected void initAfterHeader(boolean doCompress)
throws IOException
IOExceptionpublic void append(WAL.Entry entry) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionorg.apache.hadoop.hbase.protobuf.generated.WALProtos.WALTrailer buildWALTrailer(org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALTrailer.Builder builder)
private void writeWALTrailer()
public void sync()
throws IOException
IOExceptionpublic long getLength()
throws IOException
IOExceptionpublic org.apache.hadoop.fs.FSDataOutputStream getStream()
void setWALTrailer(org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALTrailer walTrailer)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.