public void setCompressor(Compressor compressor) {
    regionAttributes.compressor = compressor;
    regionAttributes.setHasCompressor(true);

    // Cloning must be enabled when a compressor is set
    if (compressor != null) {
      setCloningEnabled(true);
    }
  }
Sets this region's compressor for compressing entry values.

@since GemFire 8.0
@param compressor a compressor.
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java