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
trait AutoCloseable
class Object
trait Matchable
class Any

Value members

Concrete methods

override def close(): Unit
Definition Classes
AvroInputStream -> AutoCloseable
override def iterator: Iterator[T]

Returns an iterator for the values of T in the stream.

Returns an iterator for the values of T in the stream.

Definition Classes
override def tryIterator: Iterator[Try[T]]

Returns an iterator for values of Try[T], so that any decoding issues are wrapped.

Returns an iterator for values of Try[T], so that any decoding issues are wrapped.

Definition Classes