object SchemaList extends Serializable
- Alphabetic
 - By Inheritance
 
- SchemaList
 - Serializable
 - Serializable
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - All
 
Type Members
- 
      
      
      
        
      
    
      
        sealed 
        trait
      
      
        BuildError extends Product with Serializable
      
      
      
SchemaList construction errors
 - 
      
      
      
        
      
    
      
        sealed abstract 
        case class
      
      
        Full extends SchemaList with Product with Serializable
      
      
      
Multiple schemas, grouped by model and in canonical order
 - 
      
      
      
        
      
    
      
        sealed abstract 
        case class
      
      
        ModelGroupSet extends Product with Serializable
      
      
      
Has all properties of SchemaList.Full, except canonical order
 - 
      
      
      
        
      
    
      
        sealed abstract 
        case class
      
      
        Segment extends Product with Serializable
      
      
      
Has all properties of SchemaList.Full, except absence of gaps
 - 
      
      
      
        
      
    
      
        sealed abstract 
        case class
      
      
        Single extends SchemaList with Product with Serializable
      
      
      
Single init schema (e.g.
Single init schema (e.g.
1-0-0,3-0-0). No migrations should be involved 
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        buildMultiple(schemas: NonEmptyList[IgluSchema]): Ior[NonEmptyList[BuildError], NonEmptyList[SchemaList]]
      
      
      
Construct
SchemaLists from unordered listConstruct
SchemaLists from unordered list- schemas
 non-empty list of schemas which can belong to different model groups
- returns
 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
 - 
      
      
      
        
      
    
      
        
        def
      
      
        buildSingleSchema(schema: IgluSchema): Option[SchemaList]
      
      
      
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
- schema
 IgluSchems to create SingleSchema
- returns
 None if given schema is not first version of its model group Some(SingleSchema(schema)) otherwise
 - 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... ) @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( classOf[java.lang.Throwable] )
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        fromFetchedSchemas[F[_], E](fetch: EitherT[F, E, NonEmptyList[IgluSchema]])(implicit arg0: Functor[F]): EitherT[F, E, NonEmptyList[SchemaList]]
      
      
      
Build SchemaLists from fetched IgluSchemas.
Build SchemaLists from fetched IgluSchemas. Given EitherT should wrap fetching schemas from /schemas endpoint of Iglu Server because they need to ordered.
- fetch
 EitherT which wraps list of ordered Iglu Schemas
- returns
 list of SchemaLists which created from fetched schemas
 - 
      
      
      
        
      
    
      
        
        def
      
      
        fromSchemaList[F[_], E](keys: core.SchemaList, fetch: (SchemaKey) ⇒ EitherT[F, E, IgluSchema])(implicit arg0: Monad[F]): EitherT[F, E, SchemaList]
      
      
      
Fetch from Iglu Server and parse each schema from
SchemaKeyList, using generic resolution function (IO-dependent) valid constructor ofSchemaListFetch from Iglu Server and parse each schema from
SchemaKeyList, using generic resolution function (IO-dependent) valid constructor ofSchemaList- keys
 non-empty properly ordered list of
SchemaKeys, fetched from Iglu Server- fetch
 resolution function
- returns
 properly ordered list of parsed JSON Schemas
 - 
      
      
      
        
      
    
      
        
        def
      
      
        fromUnambiguous(modelGroup: ModelGroupSet): Either[BuildError, SchemaList]
      
      
      
Construct SchemaList from list of schemas, but only if order is unambiguous and no gaps 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 riskConstruct SchemaList from list of schemas, but only if order is unambiguous and no gaps 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- modelGroup
 non-empty list of schema belonging to the same ModelGroup
- returns
 error object as Either.left in case of transformation is not successful or created SchemaList as Either.right if everything is okay
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        unsafeBuildWithReorder(modelGroup: ModelGroupSet): Either[BuildError, SchemaList]
      
      
      
Construct
SchemaListfrom list of schemas, if there is no gaps.Construct
SchemaListfrom 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.- modelGroup
 non-empty list of schema belonging to the same
ModelGroup- returns
 error object as Either.left in case of transformation is not successful or created SchemaList as Either.right if everything is okay
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... ) @native()
 
 -  object BuildError extends Serializable
 -  object Full extends Serializable
 -  object ModelGroupSet extends Serializable
 -  object Segment extends Serializable
 -  object Single extends Serializable