com.snowplowanalytics.iglu

schemaddl

package schemaddl

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. schemaddl
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class FlatSchema(elems: ListMap[String, Map[String, String]], required: Set[String] = scala.this.Predef.Set.empty[String]) extends Product with Serializable

    Flat schema container.

  2. type IgluSchema = SelfDescribingSchema[JValue]

    Self-describing Schema container for JValue

  3. case class Migration(vendor: String, name: String, from: SchemaVer, to: SchemaVer, diff: SchemaDiff) extends Product with Serializable

    Class representing common information about Schema change, without details about specific DDLs

  4. type MigrationMap = Map[SchemaKey, List[Migration]]

    Map of Schemas to all its possible target schemas Examples: com.

    Map of Schemas to all its possible target schemas Examples: com.acme/event/1-0-0 -> [1-0-0/1-0-1, 1-0-0/1-0-2, 1-0-0/1-0-3] com.acme/event/1-0-1 -> [1-0-1/1-0-2, 1-0-1/1-0-3] com.acme/event/1-0-2 -> [1-0-2/1-0-3] com.acme/config/1-1-0 -> [1-1-0/1-0-1]

  5. type ModelGroup = (String, String, Int)

    Schema criterion restricted to model: vendor/name/m-*-* Tuple using as root key to bunch of Schemas differing only by addition (vendor, name, model)

  6. type PropertyList = ListMap[String, Map[String, String]]

    List of Schema properties First-level key is arbitrary property (like id, name etc) Second-level is map of JSON Schema properties (type, enum etc)

  7. type RevisionGroup = (String, String, Int, Int)

    Schema criterion restricted to revision: vendor/name/m-r-* Tuple using as root key to bunch of Schemas differing only by addition (vendor, name, model, revision) Hypothetical "lower" AdditionGroup could contain only one Schema

  8. type RevisionMigrationMap = Map[(String, String, Int, Int), MigrationMap]

    Intermediate nested structure used to group schemas by revision Examples: com.

    Intermediate nested structure used to group schemas by revision Examples: com.acme/event/1-0-* -> MigrationMap com.acme/event/1-1-* -> MigrationMap com.acme/config/1-1-* -> MigrationMap com.google/schema/1-0-* -> MigrationMap

  9. type ValidMigrationMap = Map[SchemaKey, Validation[String, List[Migration]]]

    Failure-aware version of MigrationMap

Value Members

  1. object FlatSchema extends Serializable

    Flattens a JsonSchema into Strings representing the path to a field.

  2. object FlatSchemaNext

    Module supposed to supersede old flattening algorithm with stringified subschemas when Schema AST will be incorporated into other parts of Iglu

  3. object Migration extends Serializable

  4. object StringUtils

    Utilities for manipulating Strings

  5. package jsonschema

  6. package redshift

Inherited from AnyRef

Inherited from Any

Ungrouped