com.snowplowanalytics.iglu.schemaddl.migrations
Represents errors while creating SchemaFullList
Always belong to the same vendor/name/model triple, however different from SchemaList, no ordering is implied.
Always belong to the same vendor/name/model triple, always have at least two elements: head (initial x-0-0 schema) and latest schema
Has all properties of SchemaListFull except that it can miss initial or last schemas
Represents schema list with single item.
Represents schema list with single item. It's version is always first of the model group such that 1-0-0, 2-0-0 etc.
Construct SchemaList
s from unordered list
Construct SchemaList
s from unordered list
non-empty list of schemas which can belong to different model groups
non-empty list of errors while creating SchemaLists in Ior.left and non-empty list of SchemaList which created from given schemas in Ior.right
Fetch NonEmptyList of IgluSchemas from Iglu Server, using generic resolution function
Fetch NonEmptyList of IgluSchemas from Iglu Server, using generic resolution function
resolution function
list of SchemaLists which created from fetched schemas
Construct SingleSchema from given Schema if it is first version of its model group
Construct SingleSchema from given Schema if it is first version of its model group
IgluSchems to create SingleSchema
None if given schema is not first version of its model group Some(SingleSchema(schema)) otherwise
Fetch from Iglu Server and parse each schema from SchemaKeyList
, using generic resolution function
(IO-dependent) valid constructor of SchemaList
Fetch from Iglu Server and parse each schema from SchemaKeyList
, using generic resolution function
(IO-dependent) valid constructor of SchemaList
non-empty properly ordered list of SchemaKey
s, fetched from Iglu Server
resolution function
properly ordered list of parsed JSON Schemas
Construct SchemaList
from list of schemas, but only if order is unambiguous (and no gaps)
(static) valid constructor of SchemaList
If order is ambiguous (left returned) then the only safe order can be retrieved from
Iglu Server (by fromSchemaList
), use other constructors on your own risk
Construct SchemaList
from list of schemas, but only if order is unambiguous (and no gaps)
(static) valid constructor of SchemaList
If order is ambiguous (left returned) then the only safe order can be retrieved from
Iglu Server (by fromSchemaList
), use other constructors on your own risk
non-empty list of schema belonging to the same ModelGroup
error object as Either.left in case of transformation is not successful or created SchemaList as Either.right if everything is okay
Construct SchemaList
from list of schemas, if there is no gaps.
Construct SchemaList
from list of schemas, if there is no gaps.
Order given model group according to their schema key and resulting
ordering might not be correct if given schema list ambiguous
therefore it is not safe to use this function with ambiguous schema list.
non-empty list of schema belonging to the same ModelGroup
error object as Either.left in case of transformation is not successful or created SchemaList as Either.right if everything is okay