Avro C#
|
Base class for Avro-supported compression codecs for data files. Note that Codec objects may maintain internal state (e.g. buffers) and are not thread safe. More...
Public Types | |
enum | Type { Type.Deflate, Type.Null } |
Codec types More... | |
Public Member Functions | |
abstract byte [] | Compress (byte[] uncompressedData) |
Compress data using implemented codec More... | |
abstract byte [] | Decompress (byte[] compressedData) |
Decompress data using implemented codec More... | |
abstract string | GetName () |
Name of this codec type More... | |
abstract override bool | Equals (object other) |
Codecs must implement an equals() method More... | |
abstract override int | GetHashCode () |
Codecs must implement a HashCode() method that is consistent with Equals More... | |
override string | ToString () |
Returns name of codec More... | |
Static Public Member Functions | |
static Codec | CreateCodec (Type codecType) |
Factory method to return child codec instance based on Codec.Type More... | |
static Codec | CreateCodecFromString (string codecType) |
Factory method to return child codec instance based on string type More... | |
Base class for Avro-supported compression codecs for data files. Note that Codec objects may maintain internal state (e.g. buffers) and are not thread safe.
|
strong |
|
pure virtual |
Compress data using implemented codec
uncompressedData |
Implemented in Avro.File.NullCodec, and Avro.File.DeflateCodec.
|
inlinestatic |
Factory method to return child codec instance based on string type
codecType |
|
pure virtual |
Decompress data using implemented codec
compressedData |
Implemented in Avro.File.DeflateCodec, and Avro.File.NullCodec.
|
pure virtual |
Codecs must implement an equals() method
other |
Implemented in Avro.File.DeflateCodec, and Avro.File.NullCodec.
|
pure virtual |
Codecs must implement a HashCode() method that is consistent with Equals
Implemented in Avro.File.DeflateCodec, and Avro.File.NullCodec.
|
pure virtual |
|
inline |
Returns name of codec