public abstract class CodecFactory extends Object
null
deflate
snappy
addCodec(String,
CodecFactory)
.Constructor and Description |
---|
CodecFactory() |
Modifier and Type | Method and Description |
---|---|
static CodecFactory |
addCodec(String name,
CodecFactory c)
Adds a new codec implementation.
|
protected abstract org.apache.avro.file.Codec |
createInstance()
Creates internal Codec.
|
static CodecFactory |
deflateCodec(int compressionLevel)
Deflate codec, with specific compression.
|
static CodecFactory |
fromString(String s)
Maps a codec name into a CodecFactory.
|
static CodecFactory |
nullCodec()
Null codec, for no compression.
|
static CodecFactory |
snappyCodec()
Snappy codec.
|
String |
toString() |
public static CodecFactory nullCodec()
public static CodecFactory deflateCodec(int compressionLevel)
public static CodecFactory snappyCodec()
protected abstract org.apache.avro.file.Codec createInstance()
public static CodecFactory fromString(String s)
null
deflate
snappy
public static CodecFactory addCodec(String name, CodecFactory c)
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.