Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

DynamicAvroUDR

DynamicAvroUDR is an output of Avro Decoder. The content of “data” filed depends on the schema used for encoding/decoding the payload.

All elements in a map can be accessed via key equal to their “name” value in corresponding avro schema

<WHAT IF DATA CONTAINS ONLY SINGLE PRIMITIVE TYPE>

The following fields are included in the DynamicAvroUDR :

Field

Description

data (any)

Contains content decoded using decoder

AvroDecoderUDR

AvroDecoderUDR is used as an input for Avro Decoder.

...

Field

Description

data (bytearray)

This field contains binary encoded avro message payload

readerSchemaID (string)

Avro Reader SchemaID - ID of compatible schema used for reading data

writerSchemaID (string)

Avro Writer SchemaID - schema used for encoding the message

AvroEncoderUDR

AvroEncoderUDR is used as an input for Avro Encoder.

The following fields are included in the AvroEncoderUDR :

Field

Description

data (any)

This field contains an UDR/type to be encoded using selected schema

writerSchemaID (string)

Avro Writer SchemaID - schema used for encoding the message

AvroEnumUDR

AvroEnumUDR is used as an <>.

The following fields are included in the AvroEnumUDR :

Field

Description

fullname (string)

symbol (string)

AvroFixedUDR

AvroFixedUDR is used as <>.

The following fields are included in the AvroFixedUDR :

Field

Description

bytes (bytearray)

fullname (string)

Name of the fixed field
(example “example.avro.myFixed”)

AvroRecordUDR

AvroRecordUDR is used to represent Avro Record structure.

The following fields are included in the AvroRecordUDR :

Field

Description

fields (map<string,any>)

Map containing fields of the record

fullname (string)

Name of the record including the namespace (example “example.avro.User3”)