Converts a byte array into its hexadecimal string representation e.g.
Converts a byte array into its hexadecimal string representation e.g. for the V1_HEADER => [C3 01]
a byte array
the hexadecimal string representation of the input byte array
Extract the payload from an avro single-object encoded byte array, removing the header (the first 10 bytes)
Extract the payload from an avro single-object encoded byte array, removing the header (the first 10 bytes)
avro single-object encoded byte array
the payload without the avro single-object encoded header
Extracts the schema ID from the avro single-object encoded at the head of this input stream.
Extracts the schema ID from the avro single-object encoded at the head of this input stream. The input stream will have 10 bytes consumed if the first two bytes correspond to the single object encoded header, or zero bytes consumed if the InputStream supports marking; if it doesn't, the first bytes (up to 2) will be consumed and returned in the Left part of the Either.
avro single-object encoded input stream
the endianness that will be used to read fingerprint bytes, it won't affect how avro payload is read, that is up to the darwin user
the schema ID extracted from the input data
Extracts the schema ID from the avro single-object encoded ByteBuffer, the ByteBuffer position will be after the header when this method returns
Extracts the schema ID from the avro single-object encoded ByteBuffer, the ByteBuffer position will be after the header when this method returns
avro single-object encoded byte array
the endianness that will be used to read fingerprint bytes, it won't affect how avro payload is read, that is up to the darwin user
the schema ID extracted from the input data
Extracts the schema ID from the avro single-object encoded byte array
Extracts the schema ID from the avro single-object encoded byte array
avro single-object encoded byte array
the endianness that will be used to read fingerprint bytes, it won't affect how avro payload is read, that is up to the darwin user
the schema ID extracted from the input data
Writes to the given OutputStream the Single Object Encoding header then calls the avroWriter function to possibly add data to the stream and finally returns the OutputStream
Writes to the given OutputStream the Single Object Encoding header then calls the avroWriter function to possibly add data to the stream and finally returns the OutputStream
the stream to write to
id of the schema used to encode the payload
the endianness that will be used to persist fingerprint bytes, it won't affect how avro payload is written, that is up to the darwin user
function that will be called to add user generated avro to the stream
the input OutputStream
Writes to the given OutputStream the Single Object Encoding header then the avroValue and returns the OutputStream
Writes to the given OutputStream the Single Object Encoding header then the avroValue and returns the OutputStream
the stream to write to
the value to be written to the stream
id of the schema used to encode the payload
the endianness that will be used to persist fingerprint bytes, it won't affect how avro payload is written, that is up to the darwin user
the input OutputStream
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 byte order to drive endianness of schemaId
a Single-Object encoded byte array
Extracts the ID from a Schema.
Extracts the ID from a Schema.
a Schema with unknown ID
the endianness that will be used to read fingerprint bytes, it won't affect how avro payload is read, that is up to the darwin user
the ID associated with the input schema
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 ByteBuffer that will not be altered position wise by this method
true if the input byte array is Single-Object encoded
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
Reads the content of the byte buffer honoring the input endianness and returns it.
Reads the content of the byte buffer honoring the input endianness and returns it. When this method returns the buffer position will 8 bytes forward but the byte order will be unchanged whatever the values of endianness and buf.order() are.
Writes to the given OutputStream the Single Object Encoding header and returns the OutputStream
Writes to the given OutputStream the Single Object Encoding header and returns the OutputStream
the endianness that will be used to persist fingerprint bytes, it won't affect how avro payload is written, that is up to the darwin user
the input OutputStream