| Modifier and Type | Field | Description | 
|---|---|---|
| static String | LEVEL | The property key for defining the compression level. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static MongoCompressor | createSnappyCompressor() | Create an instance for snappy compression. | 
| static MongoCompressor | createZlibCompressor() | Create an instance for zlib compression. | 
| boolean | equals(Object o) | |
| String | getName() | Gets the name of the compressor. | 
| <T> T | getProperty(String key,
           T defaultValue) | Gets the property with the given key. | 
| <T> T | getPropertyNonNull(String key,
                  T defaultValue) | Gets the property with the given key. | 
| int | hashCode() | |
| String | toString() | |
| <T> MongoCompressor | withProperty(String key,
            T value) | Creates a new compressor from this compressor with the given property added to it. | 
public static final String LEVEL
public static MongoCompressor createSnappyCompressor()
public static MongoCompressor createZlibCompressor()
public String getName()
@Nullable public <T> T getProperty(String key, T defaultValue)
T - the property value typekey - the keydefaultValue - the default valuepublic <T> T getPropertyNonNull(String key, T defaultValue)
T - the property value typekey - the keydefaultValue - the default valueIllegalArgumentException - if the value and default value are nullpublic <T> MongoCompressor withProperty(String key, T value)
T - the property value typekey - the property keyvalue - the property value