static class WALCellCodec.BaosAndCompressor extends ByteArrayOutputStream implements WALCellCodec.ByteStringCompressor
buf, count| Constructor and Description |
|---|
WALCellCodec.BaosAndCompressor() |
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.ByteString |
compress(byte[] data,
Dictionary dict) |
com.google.protobuf.ByteString |
toByteString() |
private void |
writeCompressed(byte[] data,
Dictionary dict) |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeToflush, writepublic com.google.protobuf.ByteString toByteString()
public com.google.protobuf.ByteString compress(byte[] data,
Dictionary dict)
throws IOException
compress in interface WALCellCodec.ByteStringCompressorIOExceptionprivate void writeCompressed(byte[] data,
Dictionary dict)
throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.