AvroBinaryInputStream
class AvroBinaryInputStream[T](in: InputStream, writerSchema: Schema)(using decoder: Decoder[T]) extends AvroInputStream[T]
An implementation of AvroInputStream that reads values of type T written as binary data.
An implementation of AvroInputStream that reads values of type T written as binary data.
In avro, binary encodings do not include the schema. Therefore, this input stream requires that the user provide the schema.
A Decoder must be provided (usually implicitly) that will marshall avro records into instances of type T.
- Value Params
- decoder
a mapping from the base avro type to an instance of T
- in
the input stream to read from
- writerSchema
the schema that was used to write the data
- See also
Value members
Concrete methods
Returns an iterator for the values of T in the stream.
Returns an iterator for the values of T in the stream.
- Definition Classes