Class WALCellCodec.BaosAndCompressor
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.apache.hadoop.hbase.regionserver.wal.WALCellCodec.BaosAndCompressor
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,WALCellCodec.ByteStringCompressor
- Enclosing class:
- WALCellCodec
static class WALCellCodec.BaosAndCompressor
extends ByteArrayOutputStream
implements WALCellCodec.ByteStringCompressor
-
Field Summary
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hbase.thirdparty.com.google.protobuf.ByteString
org.apache.hbase.thirdparty.com.google.protobuf.ByteString
private void
writeCompressed
(byte[] data, Enum dictIndex) Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeTo
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Field Details
-
compressionContext
-
-
Constructor Details
-
BaosAndCompressor
-
-
Method Details
-
toByteString
-
compress
public org.apache.hbase.thirdparty.com.google.protobuf.ByteString compress(byte[] data, Enum dictIndex) throws IOException - Specified by:
compress
in interfaceWALCellCodec.ByteStringCompressor
- Throws:
IOException
-
writeCompressed
- Throws:
IOException
-