Extract list of custom contexts out of string and validate each against its schema
Extract list of custom contexts out of string and validate each against its schema
The Snowplow enriched event to extract custom context JSONs from
iglu resolver
validated list of pairs consist of schema and node
Extract list of derived contexts out of string and validate each against its schema
Extract list of derived contexts out of string and validate each against its schema
The Snowplow enriched event to extract custom context JSONs from
iglu resolver
validated list of pairs consist of schema and node
Extract unstruct event out of EnrichedEvent and validate against it's schema
Extract unstruct event out of EnrichedEvent and validate against it's schema
The Snowplow enriched event to find unstruct event in
iglu resolver
validated list (empty or single-element) of pairs consist of unstruct event schema and node
Extract unstruct event as JsonNode Extraction involves validation against schema Event itself extracted as List (empty or with single element)
Extract unstruct event as JsonNode Extraction involves validation against schema Event itself extracted as List (empty or with single element)
The Snowplow enriched event to shred JSONs from
Our implicit Iglu resolver, for schema lookups
a Validation containing on Success a List (possible empty) of JsonNodes and on Failure a NonEmptyList of JsonNodes containing error messages
Shred the EnrichedEvent's two fields which contain JSONs: contexts and unstructured event properties.
Shred the EnrichedEvent's two fields which contain JSONs: contexts and unstructured event properties. By shredding we mean:
1. Verify the two fields contain valid JSONs 2. Validate they conform to JSON Schema 3. For the contexts, break the singular JsonNode into a List of individual context JsonNodes 4. Collect the unstructured event and contexts into a singular List
The Snowplow enriched event to shred JSONs from
Our implicit Iglu Resolver, for schema lookups
a Validation containing on Success a List (possible empty) of JsonNodes and on Failure a NonEmptyList of JsonNodes containing error messages
The shredder takes the two fields containing JSONs (contexts and unstructured event properties) and "shreds" their contents into a List of JsonNodes ready for loading into dedicated tables in the database.