Interface GlueSchemaRegistryCompressionHandler

    • Method Detail

      • getDeflatorObject

        static Deflater getDeflatorObject​(byte[] record)
      • getInflatorObject

        static Inflater getInflatorObject​(byte[] compressedRecord,
                                          int start,
                                          int end)
      • compress

        default byte[] compress​(byte[] record)
                         throws IOException
        Compresses the record.
        Parameters:
        record -
        Returns:
        compressed byte array representation.
        Throws:
        IOException
      • decompress

        default byte[] decompress​(byte[] compressedRecord,
                                  int start,
                                  int end)
                           throws IOException
        Need to provide the start bit and end bit for decompressor to decompress the specified bits in the byte array.
        Parameters:
        compressedRecord -
        start -
        end -
        Returns:
        decompressed byte array.
        Throws:
        IOException