Create an array that creates a Single-Object encoded byte array.
Create an array that creates a Single-Object encoded byte array. By specifications the encoded array is obtained concatenating the V1_HEADER, the schema id and the avro-encoded payload.
avro-serialized payload
the schema used to encode the payload
a Single-Object encoded byte array
Create an array that creates a Single-Object encoded byte array.
Create an array that creates a Single-Object encoded byte array. By specifications the encoded array is obtained concatenating the V1_HEADER, the schema id and the avro-encoded payload.
avro-serialized payload
id of the schema used to encode the payload
a Single-Object encoded byte array
Extracts the ID from a Schema.
Extracts the ID from a Schema.
a Schema with unknown ID
the ID associated with the input schema
Returns an instance of AvroSchemaManager that can be used to register schemas.
Returns an instance of AvroSchemaManager that can be used to register schemas.
the Config that is passed to the connector
an instance of AvroSchemaManager
Extracts the Schema from its ID.
Extracts the Schema from its ID.
a Long representing an ID
the Schema associated to the input ID
Checks if a byte array is Avro Single-Object encoded ( Single-Object Encoding Documentation)
Checks if a byte array is Avro Single-Object encoded ( Single-Object Encoding Documentation)
a byte array
true if the input byte array is Single-Object encoded
Reloads all the schemas from the previously configured storage.
Reloads all the schemas from the previously configured storage. Throws an exception if the cache wasn't already loaded (the getInstance method must always be used to initialize the cache using the required configuration).
Extracts a Tuple2 that contains the Schema and the Avro-encoded payload
Extracts a Tuple2 that contains the Schema and the Avro-encoded payload
a byte array of a Single-Object encoded payload
a pair containing the Schema and the payload of the input array