Compressor (Apache Geode 2.0.2)
Description: declaration: package: org.apache.geode.compression, interface: Compressor

Package org.apache.geode.compression

# Interface Compressor

All Known Implementing Classes:
  `SnappyCompressor`

public interface Compressor
Interface for a compression codec.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `byte[]`
  `compress(byte[] input)`
  Compresses the input byte array.
  `byte[]`
  `decompress(byte[] input)`
  Decompresses a compressed byte array.

- ## Method Details

  - ### 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.