Compressor (Apache Geode 1.15.4)

org.apache.geode.compression

## Interface Compressor

- All Known Implementing Classes:
    SnappyCompressor

      public interface Compressor

  Interface for a compression codec.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `compress(byte[] input)` Compresses the input byte array.
    `byte[]` | `decompress(byte[] input)` Decompresses a compressed byte array.

- - ### Method Detail

    - #### compress

          byte[] compress(byte[] input)

      Compresses the input byte array.
      Parameters:
        `input` - The data to be compressed.
      Returns:
        A compressed version of the input parameter.

    - #### decompress

          byte[] decompress(byte[] input)

      Decompresses a compressed byte array.
      Parameters:
        `input` - A compressed byte array.
      Returns:
        an uncompressed version of compressed input byte array data.