| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Avro.Types
Contents
Description
Language definition for AVRO (.avdl) files,
as defined in http://avro.apache.org/docs/1.8.2/spec.html.
Synopsis
- data Method = Method {}
- data Argument = Argument {}
- data ImportType
- data Annotation = Annotation {}
- type Aliases = [TypeName]
- newtype Namespace = Namespace [Text]
- data Protocol = Protocol {}
- data Schema where
- Null
- Boolean
- Int { }
- Long { }
- Float
- Double
- Bytes { }
- String { }
- Array { }
- Map { }
- NamedType TypeName
- Record { }
- Enum { }
- Union { }
- Fixed {
- name :: TypeName
- aliases :: [TypeName]
- size :: Int
- logicalTypeF :: Maybe LogicalTypeFixed
- pattern String' :: Schema
- pattern Bytes' :: Schema
- pattern Long' :: Schema
- pattern Int' :: Schema
Documentation
Type for methods/messages that belong to a protocol.
Constructors
| Method | |
Helper type for the arguments of Method.
data ImportType Source #
Type for the possible import types in Protocol.
Constructors
| IdlImport Text | |
| ProtocolImport Text | |
| SchemaImport Text |
Instances
| Eq ImportType Source # | |
Defined in Language.Avro.Types | |
| Ord ImportType Source # | |
Defined in Language.Avro.Types Methods compare :: ImportType -> ImportType -> Ordering # (<) :: ImportType -> ImportType -> Bool # (<=) :: ImportType -> ImportType -> Bool # (>) :: ImportType -> ImportType -> Bool # (>=) :: ImportType -> ImportType -> Bool # max :: ImportType -> ImportType -> ImportType # min :: ImportType -> ImportType -> ImportType # | |
| Show ImportType Source # | |
Defined in Language.Avro.Types Methods showsPrec :: Int -> ImportType -> ShowS # show :: ImportType -> String # showList :: [ImportType] -> ShowS # | |
data Annotation Source #
Type for special annotations.
Constructors
| Annotation | |
Instances
| Eq Annotation Source # | |
Defined in Language.Avro.Types | |
| Show Annotation Source # | |
Defined in Language.Avro.Types Methods showsPrec :: Int -> Annotation -> ShowS # show :: Annotation -> String # showList :: [Annotation] -> ShowS # | |
Newtype for the namespace of methods and protocols.
Instances
| Eq Namespace Source # | |
| Ord Namespace Source # | |
| Show Namespace Source # | |
Whole definition of protocol.
Constructors
| Protocol | |
N.B. It is possible to create a Haskell value (of Schema type) that is
not a valid Avro schema by violating one of the above or one of the
conditions called out in validateSchema.
Constructors
| Null | |
| Boolean | |
| Int | |
Fields | |
| Long | |
Fields | |
| Float | |
| Double | |
| Bytes | |
Fields | |
| String | |
Fields | |
| Array | |
| Map | |
| NamedType TypeName | |
| Record | |
| Enum | |
| Union | |
| Fixed | |
Fields
| |
Bundled Patterns
| pattern String' :: Schema | |
| pattern Bytes' :: Schema | |
| pattern Long' :: Schema | |
| pattern Int' :: Schema |