Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data Codec = Codec {
- codecName :: ByteString
- codecDecompress :: forall a. Decompress a
- codecCompress :: ByteString -> ByteString
- type Decompress a = ByteString -> Get a -> Either String a
- nullCodec :: Codec
- deflateCodec :: Codec
Documentation
A Codec
allows for compression/decompression of a block in an
Avro container according to the Avro spec.
Codec | |
|
type Decompress a = ByteString -> Get a -> Either String a Source #
Block decompression function for blocks of Avro.
nullCodec
specifies null
required by Avro spec.
(see https://avro.apache.org/docs/1.8.1/spec.html#null)
deflateCodec :: Codec Source #
deflateCodec
specifies deflate
codec required by Avro spec.
(see https://avro.apache.org/docs/1.8.1/spec.html#deflate)