Class

pl.touk.nussknacker.engine.avro.schema

DefaultAvroSchemaEvolution

Related Doc: package schema

Permalink

class DefaultAvroSchemaEvolution extends AvroSchemaEvolution with DatumReaderWriterMixin with RecordDeserializer

It's base implementation of AvroSchemaEvolution. In this case strategy to evolve record to schema is as follows:

serialize record to record schema -> deserialize record to provided schema (final schema)

This strategy is based on Confluent implementation of: serialization and deserialization method. But we don't allocate bytes for MagicByte and Id, because we don't need it.

For now it's easiest way to convert GenericContainer record to wanted schema.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultAvroSchemaEvolution
  2. RecordDeserializer
  3. DatumReaderWriterMixin
  4. AvroSchemaEvolution
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultAvroSchemaEvolution()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def alignRecordToSchema(record: GenericContainer, schema: Schema): Any

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def canBeEvolved(record: GenericContainer, schema: Schema): Boolean

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. def createDatumReader(writerSchema: Schema, readerSchema: Schema, useSchemaReflection: Boolean, useSpecificAvroReader: Boolean): DatumReader[AnyRef]

    Permalink
    Definition Classes
    DatumReaderWriterMixin
  9. def createDatumWriter(record: Any, schema: Schema, useSchemaReflection: Boolean): GenericDatumWriter[Any]

    Permalink
    Definition Classes
    DatumReaderWriterMixin
  10. final val decoderFactory: DecoderFactory

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultAvroSchemaEvolutionRecordDeserializer
  11. def deserializePayloadToSchema(payload: Array[Byte], writerSchema: Schema, readerSchema: Schema): Any

    Permalink

    It's copy paste from AbstractKafkaAvroDeserializer#DeserializationContext.read with some modification.

    It's copy paste from AbstractKafkaAvroDeserializer#DeserializationContext.read with some modification. We pass there record buffer data and schema which will be used to convert record.

    Attributes
    protected
  12. def deserializeRecord(readerSchemaData: RuntimeSchemaData, reader: DatumReader[AnyRef], buffer: ByteBuffer, bufferDataStart: Int): AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    RecordDeserializer
  13. final val encoderFactory: EncoderFactory

    Permalink
    Attributes
    protected
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. val primitives: Map[String, Schema]

    Permalink

    We use it on checking writerSchema is primitive - on creating DatumReader (createDatumReader).

    We use it on checking writerSchema is primitive - on creating DatumReader (createDatumReader).

    Attributes
    protected
    Definition Classes
    DatumReaderWriterMixin
  23. def schemaIdSerializationEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultAvroSchemaEvolutionRecordDeserializer
  24. def serializeRecord(record: GenericContainer): Array[Byte]

    Permalink

    Record serialization method, kind of copy paste from AbstractKafkaAvroSerializer#DeserializationContext.read.

    Record serialization method, kind of copy paste from AbstractKafkaAvroSerializer#DeserializationContext.read. We use confluent serialization mechanism without some specifics features like:

    - fetching schema from registry - fetching schema Id - we don't serialize MagicByte and version

    To serialization we use schema from record.

    Attributes
    protected
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final val useSchemaReflection: Boolean(false)

    Permalink

    In future we can try to configure it

    In future we can try to configure it

    Attributes
    protected
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from RecordDeserializer

Inherited from DatumReaderWriterMixin

Inherited from AvroSchemaEvolution

Inherited from AnyRef

Inherited from Any

Ungrouped