Uses of Class
org.apache.avro.io.Encoder
Packages that use Encoder
Package
Description
Interfaces and base classes shared by generic, specific and reflect.
A generic representation for Avro data.
Utilities for Encoding and Decoding Avro data.
Implementation of Avro schemas as LL(1) grammars.
Use Java reflection to generate schemas and protocols for existing
classes.
Generate specific Java classes for schemas and protocols.
-
Uses of Encoder in org.apache.avro.data
Methods in org.apache.avro.data with parameters of type Encoder -
Uses of Encoder in org.apache.avro.generic
Methods in org.apache.avro.generic with parameters of type EncoderModifier and TypeMethodDescriptionvoid
protected void
Called to write data.protected void
GenericDatumWriter.writeArray
(Schema schema, Object datum, Encoder out) Called to write a array.protected void
GenericDatumWriter.writeBytes
(Object datum, Encoder out) Called to write a bytes.protected void
Called to write an enum value.protected void
GenericDatumWriter.writeField
(Object datum, Schema.Field f, Encoder out, Object state) Called to write a single field of a record.protected void
GenericDatumWriter.writeFixed
(Schema schema, Object datum, Encoder out) Called to write a fixed value.protected void
Called to write a map.protected void
GenericDatumWriter.writeRecord
(Schema schema, Object datum, Encoder out) Called to write a record.protected void
GenericDatumWriter.writeString
(Object datum, Encoder out) Called to write a string.protected void
GenericDatumWriter.writeString
(Schema schema, Object datum, Encoder out) Called to write a string.protected void
GenericDatumWriter.writeWithoutConversion
(Schema schema, Object datum, Encoder out) Called to write data. -
Uses of Encoder in org.apache.avro.io
Subclasses of Encoder in org.apache.avro.ioModifier and TypeClassDescriptionclass
An abstractEncoder
for Avro's binary encoding.class
ABinaryEncoder
implementation that writes large arrays and maps as a sequence of blocks.class
AnEncoder
for Avro's binary encoding that does not buffer output.class
AnEncoder
for Avro's binary encoding.class
AnEncoder
for Avro's binary encoding that does not buffer output.class
AnEncoder
for Avro's JSON data encoding.class
class
An implementation ofEncoder
that wraps another Encoder and ensures that the sequence of operations conforms to the provided schema.Fields in org.apache.avro.io declared as EncoderMethods in org.apache.avro.io with parameters of type EncoderModifier and TypeMethodDescriptionReconfigures this ValidatingEncoder to wrap the encoder provided.EncoderFactory.validatingEncoder
(Schema schema, Encoder encoder) Creates aValidatingEncoder
that wraps the Encoder provided.void
Write a datum. -
Uses of Encoder in org.apache.avro.io.parsing
Methods in org.apache.avro.io.parsing with parameters of type Encoder -
Uses of Encoder in org.apache.avro.reflect
Methods in org.apache.avro.reflect with parameters of type EncoderModifier and TypeMethodDescriptionprotected abstract void
protected final void
protected void
protected void
ReflectDatumWriter.writeArray
(Schema schema, Object datum, Encoder out) Called to write a array.protected void
ReflectDatumWriter.writeBytes
(Object datum, Encoder out) protected void
ReflectDatumWriter.writeField
(Object record, Schema.Field f, Encoder out, Object state) -
Uses of Encoder in org.apache.avro.specific
Methods in org.apache.avro.specific with parameters of type EncoderModifier and TypeMethodDescriptionvoid
SpecificRecordBase.customEncode
(Encoder out) protected void
protected void
SpecificDatumWriter.writeField
(Object datum, Schema.Field f, Encoder out, Object state) protected void
SpecificDatumWriter.writeRecord
(Schema schema, Object datum, Encoder out) protected void
SpecificDatumWriter.writeString
(Schema schema, Object datum, Encoder out)