Class GlueSchemaRegistryDefaultCompression
- java.lang.Object
-
- com.amazonaws.services.schemaregistry.common.GlueSchemaRegistryDefaultCompression
-
- All Implemented Interfaces:
GlueSchemaRegistryCompressionHandler
public class GlueSchemaRegistryDefaultCompression extends Object implements GlueSchemaRegistryCompressionHandler
Compresses and Decompresses records using the Zlib algorithm.
-
-
Field Summary
-
Fields inherited from interface com.amazonaws.services.schemaregistry.common.GlueSchemaRegistryCompressionHandler
BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description GlueSchemaRegistryDefaultCompression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]compress(byte[] record)Compresses the record.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.
-
-
-
Method Detail
-
compress
public byte[] compress(byte[] record)
Description copied from interface:GlueSchemaRegistryCompressionHandlerCompresses the record.- Specified by:
compressin interfaceGlueSchemaRegistryCompressionHandler- Returns:
- compressed byte array representation.
-
decompress
public byte[] decompress(byte[] compressedRecord, int start, int end)Description copied from interface:GlueSchemaRegistryCompressionHandlerNeed to provide the start bit and end bit for decompressor to decompress the specified bits in the byte array.- Specified by:
decompressin interfaceGlueSchemaRegistryCompressionHandler- Returns:
- decompressed byte array.
-
-