@InterfaceAudience.LimitedPrivate(value="Configuration") public class ProtobufLogWriter extends WriterBase
| 限定符和类型 | 字段和说明 |
|---|---|
protected Codec.Encoder |
cellEncoder |
protected WALCellCodec.ByteStringCompressor |
compressor |
protected org.apache.hadoop.fs.FSDataOutputStream |
output |
compressionContext, conf| 构造器和说明 |
|---|
ProtobufLogWriter() |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
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) |
void |
sync() |
initializeCompressionContextprotected org.apache.hadoop.fs.FSDataOutputStream output
protected Codec.Encoder cellEncoder
protected WALCellCodec.ByteStringCompressor compressor
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 在接口中 DefaultWALProvider.Writerinit 在类中 WriterBaseIOExceptionprotected void initAfterHeader(boolean doCompress)
throws IOException
IOExceptionpublic void append(WAL.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()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.