Extracts the schema from the avro single-object encoded at the head of this input stream.
Extracts the schema 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 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
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 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
the schema used to encode the payload
a Single-Object encoded byte array
Retrieves all registered schemas
Retrieves all registered schemas
A Sequence of (ID, Schema)
Extracts the ID from a Schema.
Extracts the ID from a Schema.
a Schema with unknown ID
the ID associated with the input schema
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 all the input Schema elements are already in the cache.
Checks if all the input Schema elements are already in the cache. Then, it performs an insert on the storage for all the elements not found on the cache, and then returns each input schema paired with its ID.
all the Schema that should be registered
a sequence of pairs of the input schemas associated with their IDs
JAVA API: Checks if all the input Schema elements are already in the cache.
JAVA API: Checks if all the input Schema elements are already in the cache. Then, it performs an insert on the storage for all the elements not found on the cache, and then returns each input schema paired with its ID.
all the Schema that should be registered
a sequence of pairs of the input schemas associated with their IDs
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 the Schema from the ByteBuffer after the method call the ByteBuffer position will be right after the header.
Extracts the Schema from the ByteBuffer after the method call the ByteBuffer position will be right after the header.
a ByteBuffer of a Single-Object encoded payload
the avro Schema
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
Extracts a SchemaPayloadPair that contains the Schema and the Avro-encoded payload
Extracts a SchemaPayloadPair that contains the Schema and the Avro-encoded payload
a byte array of a Single-Object encoded payload
a SchemaPayloadPair containing the Schema and the payload of the input array
Implementation of CachedAvroSchemaManager that loads all the schemas into the cache at startup and perform all the retrieves onto the cache; an access to the storage is performed only if there is a cache miss.