Class

pl.touk.nussknacker.engine.avro.schemaregistry.confluent.formatter

ConfluentAvroToJsonFormatter

Related Doc: package formatter

Permalink

class ConfluentAvroToJsonFormatter[K, V] extends RecordFormatter

Formatter uses writer schema ids to assure test data represent raw events data, without schema evolution (which adjusts data to reader schema). Test data record contains data of ConsumerRecord and contains key and value schema ids (see [AvroSerializableConsumerRecord]).

K

- key type passed from KafkaAvroSourceFactory, used to determine which datumReaderWriter use (e.g. specific or generic)

V

- value type passed from KafkaAvroSourceFactory, used to determine which datumReaderWriter use (e.g. specific or generic)

Linear Supertypes
RecordFormatter, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConfluentAvroToJsonFormatter
  2. RecordFormatter
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConfluentAvroToJsonFormatter(kafkaConfig: KafkaConfig, schemaRegistryClient: io.confluent.kafka.schemaregistry.client.SchemaRegistryClient, messageFormatter: ConfluentAvroMessageFormatter, messageReader: ConfluentAvroMessageReader, deserializationSchema: KafkaDeserializationSchema[ConsumerRecord[K, V]])(implicit arg0: ClassTag[K], arg1: ClassTag[V])

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. val consumerRecordDecoder: Decoder[AvroSerializableConsumerRecord[Json, Json]]

    Permalink
    Attributes
    protected
  7. val consumerRecordEncoder: Encoder[AvroSerializableConsumerRecord[K, V]]

    Permalink
    Attributes
    protected
  8. def createKeyEncoder(messageFormatter: ConfluentAvroMessageFormatter): Encoder[K]

    Permalink
    Attributes
    protected
  9. def createValueEncoder(messageFormatter: ConfluentAvroMessageFormatter): Encoder[V]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def formatRecord(record: ConsumerRecord[Array[Byte], Array[Byte]]): Array[Byte]

    Permalink

    Step 1: Deserialize raw kafka event to GenericRecord/SpecificRecord domain.

    Step 1: Deserialize raw kafka event to GenericRecord/SpecificRecord domain. Step 2: Create Encoders that use ConfluentAvroMessageFormatter to convert avro object to json Step 3: Encode event's data with schema id's with derived encoder.

    Attributes
    protected
    Definition Classes
    ConfluentAvroToJsonFormatter → RecordFormatter
  13. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  16. implicit val keyEncoder: Encoder[K]

    Permalink
    Attributes
    protected
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. def parseDataForTest(topic: String, mergedData: Array[Byte]): List[ConsumerRecord[Array[Byte], Array[Byte]]]

    Permalink
    Definition Classes
    RecordFormatter
  21. def parseRecord(topic: String, bytes: Array[Byte]): ConsumerRecord[Array[Byte], Array[Byte]]

    Permalink

    Step 1: Deserialize raw json bytes to AvroSerializableConsumerRecord[Json, Json] domain without interpreting key and value content.

    Step 1: Deserialize raw json bytes to AvroSerializableConsumerRecord[Json, Json] domain without interpreting key and value content. Step 2: Create key and value json-to-avro interpreter based on schema id's provided in json. Step 3: Use interpreter to create raw kafka ConsumerRecord

    Attributes
    protected
    Definition Classes
    ConfluentAvroToJsonFormatter → RecordFormatter
  22. def prepareGeneratedTestData(records: List[ConsumerRecord[Array[Byte], Array[Byte]]]): Array[Byte]

    Permalink
    Definition Classes
    RecordFormatter
  23. implicit val serializableRecordDecoder: Decoder[SerializableConsumerRecord[Json, Json]]

    Permalink
    Attributes
    protected
  24. implicit val serializableRecordEncoder: Encoder[SerializableConsumerRecord[K, V]]

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

    Permalink
    Definition Classes
    AnyRef
  26. def testDataSplit: TestDataSplit

    Permalink
    Attributes
    protected
    Definition Classes
    ConfluentAvroToJsonFormatter → RecordFormatter
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. implicit val valueEncoder: Encoder[V]

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. 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 RecordFormatter

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped