public interface GlueSchemaRegistryCompressionHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Modifier and Type | Method and Description |
|---|---|
default byte[] |
compress(byte[] record)
Compresses the record.
|
default byte[] |
decompress(byte[] compressedRecord,
int start,
int end)
Need to provide the start bit and end bit for decompressor to decompress the
specified bits in the byte array.
|
static byte[] |
decompress(Inflater inflater,
int size) |
static Deflater |
getDeflatorObject(byte[] record) |
static Inflater |
getInflatorObject(byte[] compressedRecord,
int start,
int end) |
static byte[] |
writeToByteArrayOutputStream(Inflater inflater,
ByteArrayOutputStream outputStream) |
static byte[] |
writeToDeflatorObject(byte[] record,
Deflater deflater) |
static final int BUFFER_SIZE
static byte[] writeToDeflatorObject(byte[] record,
Deflater deflater)
throws IOException
IOExceptionstatic Deflater getDeflatorObject(byte[] record)
static Inflater getInflatorObject(byte[] compressedRecord, int start, int end)
static byte[] decompress(Inflater inflater, int size) throws IOException
IOExceptionstatic byte[] writeToByteArrayOutputStream(Inflater inflater, ByteArrayOutputStream outputStream) throws IOException
IOExceptiondefault byte[] compress(byte[] record)
throws IOException
record - IOExceptiondefault byte[] decompress(byte[] compressedRecord,
int start,
int end)
throws IOException
compressedRecord - start - end - IOExceptionCopyright © 2024. All rights reserved.