Modifier and Type | Field and Description |
---|---|
static String |
LEVEL
The property key for defining the compression level.
|
Modifier and Type | Method and 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.
|
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()
public <T> T getProperty(String key, T defaultValue)
T
- the property value typekey
- the keydefaultValue
- the default valuepublic <T> MongoCompressor withProperty(String key, T value)
T
- the property value typekey
- the property keyvalue
- the property value