public class CompressorRegistry extends Object
IRecordCompressor
implementations.Modifier and Type | Field and Description |
---|---|
static String |
DEFLATE_BEST_COMPRESSION
Key for
Deflater compression with BEST COMPRESSION. |
static String |
DEFLATE_BEST_SPEED
Key for
Deflater compression with BEST SPEED. |
static String |
GZIP
Key for GZIP compression.
|
static String |
NOP
Key for no compression.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
IRecordCompressor compressor)
Global hook to allow customized compression strategies
|
IRecordCompressor |
get(String key)
Return the
IRecordCompressor registered under that key (if any). |
static CompressorRegistry |
getInstance() |
public static final String DEFLATE_BEST_SPEED
Deflater
compression with BEST SPEED.RecordCompressor
,
Constant Field Valuespublic static final String DEFLATE_BEST_COMPRESSION
Deflater
compression with BEST COMPRESSION.RecordCompressor
,
Constant Field Valuespublic static final String GZIP
GZipCompressor
,
Constant Field Valuespublic static final String NOP
Note: null
is more efficient than the
NOPRecordCompressor
since it avoids all copy for all
IRecordCompressor
methods.
NOPRecordCompressor
,
Constant Field Valuespublic static CompressorRegistry getInstance()
public void add(String key, IRecordCompressor compressor)
key
- compressor
- public IRecordCompressor get(String key)
IRecordCompressor
registered under that key (if any).key
- The key (optional - may be null
).IRecordCompressor
-or- null
if the key
is null
or if there is nothing registered under that
key.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.