nulldeflatesnappybzip2addCodec(String, CodecFactory).
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final boolean | |
| public static final int | |
| private static final Logger | |
| private static final Map | REGISTERED
Mapping of string names (stored as metas) and codecs. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static CodecFactory | |
| public static CodecFactory | |
| protected abstract Codec | |
| public static CodecFactory | |
| public static CodecFactory | |
| public static CodecFactory | |
| public static CodecFactory | |
| public String | |
| public static CodecFactory | |
| public static CodecFactory | zstandardCodec(int
The compression level should be between -5 and 22, inclusive.
Negative levels are 'fast' modes akin to lz4 or snappy, levels
above 9 are generally for archival purposes, and levels above 18
use a lot of memory. level)zstandard codec, with specific compression level. |
| public static CodecFactory | zstandardCodec(int
The compression level should be between -5 and 22,
inclusive. Negative levels are 'fast' modes akin to lz4 or
snappy, levels above 9 are generally for archival
purposes, and levels above 18 use a lot of memory. level, boolean if true, will include a checksum with each data block useChecksum)zstandard codec, with specific compression level. |
| public static CodecFactory | zstandardCodec(int
The compression level should be between -5 and 22,
inclusive. Negative levels are 'fast' modes akin to lz4
or snappy, levels above 9 are generally for archival
purposes, and levels above 18 use a lot of memory. level, boolean if true, will include a checksum with each data block useChecksum, boolean if true, will use recycling buffer pool useBufferPool)zstandard codec, with specific compression level, checksum, and bufferPool |
| DEFAULT_DEFLATE_LEVEL | back to summary |
|---|---|
| public static final int DEFAULT_DEFLATE_LEVEL | |
| DEFAULT_XZ_LEVEL | back to summary |
|---|---|
| public static final int DEFAULT_XZ_LEVEL | |
| DEFAULT_ZSTANDARD_BUFFERPOOL | back to summary |
|---|---|
| public static final boolean DEFAULT_ZSTANDARD_BUFFERPOOL | |
| DEFAULT_ZSTANDARD_LEVEL | back to summary |
|---|---|
| public static final int DEFAULT_ZSTANDARD_LEVEL | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| REGISTERED | back to summary |
|---|---|
| private static final Map<String, CodecFactory> REGISTERED Mapping of string names (stored as metas) and codecs. Note that currently options (like compression level) are not recoverable. | |
| CodecFactory | back to summary |
|---|---|
| public CodecFactory() | |
| addCodec | back to summary |
|---|---|
| public static CodecFactory addCodec(String name, CodecFactory c) Adds a new codec implementation. If name already had a codec associated with it, returns the previous codec. | |
| bzip2Codec | back to summary |
|---|---|
| public static CodecFactory bzip2Codec() bzip2 codec. | |
| createInstance | back to summary |
|---|---|
| protected abstract Codec createInstance() Creates internal Codec. | |
| deflateCodec | back to summary |
|---|---|
| public static CodecFactory deflateCodec(int compressionLevel) Deflate codec, with specific compression. compressionLevel should be between 1 and 9, inclusive. | |
| fromString | back to summary |
|---|---|
| public static CodecFactory fromString(String s) Maps a codec name into a CodecFactory. Currently there are six codecs registered by default:
| |
| nullCodec | back to summary |
|---|---|
| public static CodecFactory nullCodec() Null codec, for no compression. | |
| snappyCodec | back to summary |
|---|---|
| public static CodecFactory snappyCodec() Snappy codec. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| xzCodec | back to summary |
|---|---|
| public static CodecFactory xzCodec(int compressionLevel) XZ codec, with specific compression. compressionLevel should be between 1 and 9, inclusive. | |
| zstandardCodec | back to summary |
|---|---|
| public static CodecFactory zstandardCodec(int level) zstandard codec, with specific compression level.
| |
| zstandardCodec | back to summary |
|---|---|
| public static CodecFactory zstandardCodec(int level, boolean useChecksum) zstandard codec, with specific compression level.
| |
| zstandardCodec | back to summary |
|---|---|
| public static CodecFactory zstandardCodec(int level, boolean useChecksum, boolean useBufferPool) zstandard codec, with specific compression level, checksum, and bufferPool
| |