t

zio.schema

SimpleMutableSchemaBasedValueBuilder

trait SimpleMutableSchemaBasedValueBuilder[Target] extends MutableSchemaBasedValueBuilder[Target, Unit]

A simpler version of SimpleMutableSchemaBasedValueBuilder without using any Context

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleMutableSchemaBasedValueBuilder
  2. MutableSchemaBasedValueBuilder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def createDictionary(schema: Map[_, _], values: Chunk[(Target, Target)]): Target
    Attributes
    protected
  2. abstract def createDynamic(): Option[Target]
    Attributes
    protected
  3. abstract def createEither(schema: Either[_, _], value: Either[Target, Target]): Target
    Attributes
    protected
  4. abstract def createEnum(cases: Chunk[Case[_, _]], index: Int, value: Target): Target
    Attributes
    protected
  5. abstract def createOptional(schema: Optional[_], value: Option[Target]): Target
    Attributes
    protected
  6. abstract def createPrimitive(typ: StandardType[_]): Target
    Attributes
    protected
  7. abstract def createRecord(record: Record[_], values: Chunk[(Int, Target)]): Target
    Attributes
    protected
  8. abstract def createSequence(schema: Sequence[_, _, _], values: Chunk[Target]): Target
    Attributes
    protected
  9. abstract def createSet(schema: Set[_], values: Chunk[Target]): Target
    Attributes
    protected
  10. abstract def createTuple(schema: Tuple2[_, _], left: Target, right: Target): Target
    Attributes
    protected
  11. abstract def fail(message: String): Target
    Attributes
    protected
  12. abstract def finishedCreatingOneDictionaryElement(context: Unit, schema: Map[_, _], index: Int): Boolean

    Called after constructing a single dictionary element.

    Called after constructing a single dictionary element. The context is the context of the whole dictionary. If the returned value is true, a next element will be read otherwise the dictionary is completed and createDictionary is called.

    Attributes
    protected
    Definition Classes
    MutableSchemaBasedValueBuilder
  13. abstract def finishedCreatingOneSequenceElement(context: Unit, schema: Sequence[_, _, _], index: Int): Boolean

    Called after constructing a single sequence element.

    Called after constructing a single sequence element. The context is the context of the whole sequence. If the returned value is true, a next element will be read otherwise the sequence is completed and createSequence is called.

    Attributes
    protected
    Definition Classes
    MutableSchemaBasedValueBuilder
  14. abstract def finishedCreatingOneSetElement(context: Unit, schema: Set[_], index: Int): Boolean

    Called after constructing a single set element.

    Called after constructing a single set element. The context is the context of the whole set. If the returned value is true, a next element will be read otherwise the set is completed and createSet is called.

    Attributes
    protected
    Definition Classes
    MutableSchemaBasedValueBuilder
  15. abstract def startCreatingDictionary(schema: Map[_, _]): Option[Unit]
    Attributes
    protected
  16. abstract def startCreatingEither(schema: Either[_, _]): Either[Unit, Unit]
    Attributes
    protected
  17. abstract def startCreatingEnum(cases: Chunk[Case[_, _]]): Int
    Attributes
    protected
  18. abstract def startCreatingOptional(schema: Optional[_]): Option[Unit]
    Attributes
    protected
  19. abstract def startCreatingRecord(record: Record[_]): Unit
    Attributes
    protected
  20. abstract def startCreatingSequence(schema: Sequence[_, _, _]): Option[Unit]
    Attributes
    protected
  21. abstract def startCreatingSet(schema: Set[_]): Option[Unit]
    Attributes
    protected
  22. abstract def startCreatingTuple(schema: Tuple2[_, _]): Unit
    Attributes
    protected
  23. abstract def startReadingField(record: Record[_], index: Int): Option[Int]
    Attributes
    protected
  24. abstract def startReadingOneDictionaryKey(schema: Map[_, _]): Unit
    Attributes
    protected
  25. abstract def startReadingOneDictionaryValue(schema: Map[_, _]): Unit
    Attributes
    protected
  26. abstract def startReadingOneSequenceElement(schema: Sequence[_, _, _]): Unit
    Attributes
    protected
  27. abstract def startReadingOneSetElement(schema: Set[_]): Unit
    Attributes
    protected
  28. abstract def startReadingSecondTupleElement(schema: Tuple2[_, _]): Unit
    Attributes
    protected
  29. abstract def transform(value: Target, f: (Any) => Either[String, Any], schema: Schema[_]): Target
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def create[A](schema: Schema[A]): Target

    Create a value of type A with the provided schema using this builder

    Create a value of type A with the provided schema using this builder

    Definition Classes
    MutableSchemaBasedValueBuilder
  7. def createDictionary(context: Unit, schema: Map[_, _], values: Chunk[(Target, Target)]): Target

    Creates the dictionary value from the chunk of key-value pairs

    Creates the dictionary value from the chunk of key-value pairs

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  8. def createDynamic(context: Unit): Option[Target]

    Creates a Dynamic value.

    Creates a Dynamic value. If the returned value is None, it indicates that the builder does not have any built-in support for Dynamic values, and it will be built using Dynamic's schema.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  9. def createEither(context: Unit, schema: Either[_, _], value: Either[Target, Target]): Target

    Create the either value from an inner value

    Create the either value from an inner value

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  10. def createEnum(context: Unit, cases: Chunk[Case[_, _]], index: Int, value: Target): Target

    Creates an enum value from the read constructor value

    Creates an enum value from the read constructor value

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  11. def createOptional(context: Unit, schema: Optional[_], value: Option[Target]): Target

    Creates the optional value from the inner value

    Creates the optional value from the inner value

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  12. def createPrimitive(context: Unit, typ: StandardType[_]): Target

    Creates a primitive value of the given standard type

    Creates a primitive value of the given standard type

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  13. def createRecord(context: Unit, record: Record[_], values: Chunk[(Int, Target)]): Target

    Creates a record value from the gathered field values

    Creates a record value from the gathered field values

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  14. def createSequence(context: Unit, schema: Sequence[_, _, _], values: Chunk[Target]): Target

    Creates the sequence value from the chunk of element values

    Creates the sequence value from the chunk of element values

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  15. def createSet(context: Unit, schema: Set[_], values: Chunk[Target]): Target

    Creates the set value from the chunk of element values

    Creates the set value from the chunk of element values

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  16. def createTuple(context: Unit, schema: Tuple2[_, _], left: Target, right: Target): Target

    Creates the tuple from the constructed first and second values

    Creates the tuple from the constructed first and second values

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def fail(context: Unit, message: String): Target

    Fail the builder with the given message

    Fail the builder with the given message

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. val initialContext: Unit

    The initial (top-level) context value

    The initial (top-level) context value

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def startCreatingDictionary(context: Unit, schema: Map[_, _]): Option[Unit]

    The next value to build is a dictionary.

    The next value to build is a dictionary. If the returned value is None, the builder creates an empty dictionary, otherwise it calls startCreatingOneDictionaryElement, startCreatingOneDictionaryValue and finishedCreatingOneDictionaryElement for each element with the returned context.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  29. def startCreatingEither(context: Unit, schema: Either[_, _]): Either[Unit, Unit]

    The next value to be created is an either value with the given schema.

    The next value to be created is an either value with the given schema. Similarly to optional values, this method is responsible for gathering enough information to decide whether the created value will be a Left or a Right. The result value represents this, and for each case allows specifying a context that will be used to create the inner value.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  30. def startCreatingEnum(context: Unit, cases: Chunk[Case[_, _]]): (Unit, Int)

    The next value to build is an enum with the given schema

    The next value to build is an enum with the given schema

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  31. def startCreatingOneDictionaryElement(state: Unit, schema: Map[_, _]): Unit

    Called before constructing a next dictionary element.

    Called before constructing a next dictionary element. The returned context is used for constructing that single element's key.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  32. def startCreatingOneDictionaryValue(state: Unit, schema: Map[_, _]): Unit

    Called after the key of a single element was created, before the value gets created.

    Called after the key of a single element was created, before the value gets created. The returned context is for constructing the element's value part.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  33. def startCreatingOneSequenceElement(state: Unit, schema: Sequence[_, _, _]): Unit

    Called before constructing a next sequence element.

    Called before constructing a next sequence element. The returned context is used for constructing that single element.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  34. def startCreatingOneSetElement(state: Unit, schema: Set[_]): Unit

    Called before constructing a next set element.

    Called before constructing a next set element. The returned context is used for constructing that single element.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  35. def startCreatingOptional(context: Unit, schema: Optional[_]): Option[Unit]

    The next value to be created is an optional value.

    The next value to be created is an optional value. If the result is None, the optional value created will be None. If it is a context, that context will be used to create the optional value.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  36. def startCreatingRecord(context: Unit, record: Record[_]): Unit

    The next value to build is a record with the given schema

    The next value to build is a record with the given schema

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  37. def startCreatingSequence(context: Unit, schema: Sequence[_, _, _]): Option[Unit]

    The next value to build is a sequence.

    The next value to build is a sequence. If the returned value is None, the builder creates an empty sequence, otherwise it calls startCreatingOneSequenceElement and finishedCreatingOneSequenceElement for each element with the returned context.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  38. def startCreatingSet(context: Unit, schema: Set[_]): Option[Unit]

    The next value to build is a set.

    The next value to build is a set. If the returned value is None, the builder creates an empty set, otherwise it calls startCreatingOneSetElement and finishedCreatingOneSetElement for each element with the returned context.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  39. def startCreatingTuple(context: Unit, schema: Tuple2[_, _]): Unit

    The next value to be created is a tuple with the given schema.

    The next value to be created is a tuple with the given schema. The returned context is used to construct the first element of the tuple.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  40. def startReadingField(context: Unit, record: Record[_], index: Int): Option[(Unit, Int)]

    Called for each field of a record.

    Called for each field of a record. The resulting tuple is either None indicating there are no more fields to read, or it contains an updated context belonging to the field and the next field's index in the schema. This allows the implementation to instantiate fields in a different order than what the schema defines.

    The index parameter is a 0-based index, incremented by one for each field read within a record.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  41. def startReadingSecondTupleElement(context: Unit, schema: Tuple2[_, _]): Unit

    Called after finished constructing the first element, before constructing the second.

    Called after finished constructing the first element, before constructing the second. The returned context is used to construct the second value.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  42. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. def transform(context: Unit, value: Target, f: (Any) => Either[String, Any], schema: Schema[_]): Target

    Transforms a value with the given function that can fail.

    Transforms a value with the given function that can fail. Making this customizable allows encoding the failure in Target.

    Attributes
    protected
    Definition Classes
    SimpleMutableSchemaBasedValueBuilderMutableSchemaBasedValueBuilder
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from MutableSchemaBasedValueBuilder[Target, Unit]

Inherited from AnyRef

Inherited from Any

Ungrouped