Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- decodeAvro :: Schema -> ByteString -> Either String (Value Type)
- decodeContainer :: ByteString -> Either String (Schema, [[Value Type]])
- decodeContainerWith :: (Schema -> Get a) -> ByteString -> Either String (Schema, [[a]])
- getAvroOf :: Schema -> Get (Value Type)
- class GetAvro a where
Documentation
decodeAvro :: Schema -> ByteString -> Either String (Value Type) Source #
Decode bytes into a Value
as described by Schema.
decodeContainer :: ByteString -> Either String (Schema, [[Value Type]]) Source #
Decode the container eagerly. In order know whether to return an error or a successfully decoded value the whole container is decoded into a memory.
Data.Avro.Decode.Lazy provides functions to decode Avro containers in a lazy, streaming fashion.
Lower level interface
decodeContainerWith :: (Schema -> Get a) -> ByteString -> Either String (Schema, [[a]]) Source #
Decode container using a custom decoding function.
Honestly, I don't know why we still expose this function.
class GetAvro a where Source #
Instances
GetAvro Bool Source # | |
GetAvro Double Source # | |
GetAvro Float Source # | |
GetAvro Int32 Source # | |
GetAvro Int64 Source # | |
GetAvro ByteString Source # | |
Defined in Data.Avro.Decode.Get getAvro :: Get ByteString Source # | |
GetAvro ByteString Source # | |
Defined in Data.Avro.Decode.Get getAvro :: Get ByteString Source # | |
GetAvro Text Source # | |
GetAvro String Source # | |
GetAvro ContainerHeader Source # | |
Defined in Data.Avro.Decode.Get | |
GetAvro a => GetAvro [a] Source # | |
Defined in Data.Avro.Decode.Get | |
GetAvro a => GetAvro (Maybe a) Source # | |
(GetAvro a, Ord a) => GetAvro (Set a) Source # | |
GetAvro a => GetAvro (Vector a) Source # | |
GetAvro ty => GetAvro (Map Text ty) Source # | |
GetAvro a => GetAvro (Array Int a) Source # | |