@InterfaceAudience.LimitedPrivate(value="Configuration") public abstract class AbstractProtobufLogWriter extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Codec.Encoder |
cellEncoder |
protected CompressionContext |
compressionContext |
protected WALCellCodec.ByteStringCompressor |
compressor |
protected org.apache.hadoop.conf.Configuration |
conf |
protected AtomicLong |
length |
protected org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALTrailer |
trailer |
protected int |
trailerWarnSize |
protected boolean |
trailerWritten |
| 构造器和说明 |
|---|
AbstractProtobufLogWriter() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALHeader |
buildSecureWALHeader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALHeader.Builder builder) |
protected org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALHeader |
buildWALHeader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALHeader.Builder builder) |
long |
getLength() |
protected abstract OutputStream |
getOutputStreamForCellEncoder() |
protected String |
getWriterClassName() |
void |
init(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf,
boolean overwritable,
long blocksize) |
protected void |
initAfterHeader(boolean doCompress) |
protected abstract void |
initOutput(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
boolean overwritable,
int bufferSize,
short replication,
long blockSize) |
protected void |
secureInitAfterHeader(boolean doCompress,
Encryptor encryptor) |
protected void |
setEncryptor(Encryptor encryptor) |
protected abstract long |
writeMagicAndWALHeader(byte[] magic,
org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALHeader header)
return the file length after written.
|
protected void |
writeWALTrailer() |
protected abstract long |
writeWALTrailerAndMagic(org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALTrailer trailer,
byte[] magic) |
protected CompressionContext compressionContext
protected org.apache.hadoop.conf.Configuration conf
protected Codec.Encoder cellEncoder
protected WALCellCodec.ByteStringCompressor compressor
protected boolean trailerWritten
protected org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALTrailer trailer
protected int trailerWarnSize
protected AtomicLong length
protected org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALHeader buildWALHeader(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALHeader.Builder builder) throws IOException
IOExceptionprotected final org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALHeader buildSecureWALHeader(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALHeader.Builder builder) throws IOException
IOExceptionprotected void setEncryptor(Encryptor encryptor)
protected String getWriterClassName()
public void init(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf,
boolean overwritable,
long blocksize)
throws IOException,
CommonFSUtils.StreamLacksCapabilityException
protected void initAfterHeader(boolean doCompress)
throws IOException
IOExceptionprotected final void secureInitAfterHeader(boolean doCompress,
Encryptor encryptor)
throws IOException
IOExceptionpublic long getLength()
protected void writeWALTrailer()
protected abstract void initOutput(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
boolean overwritable,
int bufferSize,
short replication,
long blockSize)
throws IOException,
CommonFSUtils.StreamLacksCapabilityException
protected abstract long writeMagicAndWALHeader(byte[] magic,
org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALHeader header)
throws IOException
IOExceptionprotected abstract long writeWALTrailerAndMagic(org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.WALTrailer trailer, byte[] magic) throws IOException
IOExceptionprotected abstract OutputStream getOutputStreamForCellEncoder()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.