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 -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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.
-
Constructor Details
-
GlueSchemaRegistryDefaultCompression
public GlueSchemaRegistryDefaultCompression()
-
-
Method Details
-
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.
-