static class WALCellCodec.BaosAndCompressor extends ByteArrayOutputStream implements WALCellCodec.ByteStringCompressor
Modifier and Type | Field and Description |
---|---|
private CompressionContext |
compressionContext |
buf, count
Constructor and Description |
---|
BaosAndCompressor(CompressionContext compressionContext) |
Modifier and Type | Method and Description |
---|---|
org.apache.hbase.thirdparty.com.google.protobuf.ByteString |
compress(byte[] data,
Enum dictIndex) |
org.apache.hbase.thirdparty.com.google.protobuf.ByteString |
toByteString() |
private void |
writeCompressed(byte[] data,
Enum dictIndex) |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
flush, write
private CompressionContext compressionContext
public BaosAndCompressor(CompressionContext compressionContext)
public org.apache.hbase.thirdparty.com.google.protobuf.ByteString toByteString()
public org.apache.hbase.thirdparty.com.google.protobuf.ByteString compress(byte[] data, Enum dictIndex) throws IOException
compress
in interface WALCellCodec.ByteStringCompressor
IOException
private void writeCompressed(byte[] data, Enum dictIndex) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.