Packages

class AvroToJsonFormatter[K, V] extends AbstractSchemaBasedRecordFormatter[K, V]

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 [SchemaBasedSerializableConsumerRecord]).

Linear Supertypes
AbstractSchemaBasedRecordFormatter[K, V], RecordFormatter, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AvroToJsonFormatter
  2. AbstractSchemaBasedRecordFormatter
  3. RecordFormatter
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AvroToJsonFormatter(kafkaConfig: KafkaConfig, schemaRegistryClient: SchemaRegistryClient, keyMessageReader: AvroMessageReader, valueMessageReader: AvroMessageReader, deserializationSchema: KafkaDeserializationSchema[ConsumerRecord[K, V]], schemaIdFromMessageExtractor: SchemaIdFromMessageExtractor)(implicit arg0: ClassTag[K], arg1: ClassTag[V])

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( ... ) @native() @HotSpotIntrinsicCandidate()
  6. val deserializationSchema: KafkaDeserializationSchema[ConsumerRecord[K, V]]
    Attributes
    protected
    Definition Classes
    AvroToJsonFormatterAbstractSchemaBasedRecordFormatter
  7. def deserialize(record: ConsumerRecord[Array[Byte], Array[Byte]], valueSchemaIdOpt: Option[SchemaId]): ConsumerRecord[K, V]
    Attributes
    protected
    Definition Classes
    AbstractSchemaBasedRecordFormatter
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def formatMessage(schemaIdOpt: Option[SchemaId], data: Any): Json
    Attributes
    protected
    Definition Classes
    AvroToJsonFormatterAbstractSchemaBasedRecordFormatter
  11. def formatRecord(record: ConsumerRecord[Array[Byte], Array[Byte]]): TestRecord

    Step 1: Deserialize raw kafka event to record domain (e.g.

    Step 1: Deserialize raw kafka event to record domain (e.g. GenericRecord). Step 2: Create Encoders that convert record to json Step 3: Encode event's data with schema id's with derived encoder.

    Attributes
    protected
    Definition Classes
    AbstractSchemaBasedRecordFormatter → RecordFormatter
  12. def generateTestData(topics: NonEmptyList[ForSource], size: Int, kafkaConfig: KafkaConfig): TestData
    Definition Classes
    RecordFormatter
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val kafkaConfig: KafkaConfig
    Attributes
    protected
    Definition Classes
    AvroToJsonFormatterAbstractSchemaBasedRecordFormatter
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def parseRecord(topic: ForSource, testRecord: TestRecord): ConsumerRecord[Array[Byte], Array[Byte]]

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

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

    Definition Classes
    AbstractSchemaBasedRecordFormatter → RecordFormatter
  21. def prepareGeneratedTestData(records: List[ConsumerRecord[Array[Byte], Array[Byte]]]): TestData
    Definition Classes
    RecordFormatter
  22. def readRecordKeyMessage(schemaOpt: Option[ParsedSchema], topic: ForSource, jsonObj: Json): Array[Byte]
    Attributes
    protected
    Definition Classes
    AvroToJsonFormatterAbstractSchemaBasedRecordFormatter
  23. def readValueMessage(schemaOpt: Option[ParsedSchema], topic: ForSource, jsonObj: Json): Array[Byte]
    Attributes
    protected
    Definition Classes
    AvroToJsonFormatterAbstractSchemaBasedRecordFormatter
  24. val schemaIdFromMessageExtractor: SchemaIdFromMessageExtractor
    Attributes
    protected
    Definition Classes
    AvroToJsonFormatterAbstractSchemaBasedRecordFormatter
  25. val schemaRegistryClient: SchemaRegistryClient
    Attributes
    protected
    Definition Classes
    AvroToJsonFormatterAbstractSchemaBasedRecordFormatter
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AbstractSchemaBasedRecordFormatter[K, V]

Inherited from RecordFormatter

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped