Uses of Class
org.apache.avro.io.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.
Support for inter-process calls.
Protocol Buffer
compatibility.
Use Java reflection to generate schemas and protocols for existing
classes.
Generate specific Java classes for schemas and protocols.
Thrift compatibility.
-
Uses of Encoder in org.apache.avro.data
-
Uses of Encoder in org.apache.avro.generic
Modifier 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
Modifier 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.Modifier 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
-
Uses of Encoder in org.apache.avro.ipc
Modifier and TypeMethodDescriptionvoid
HandshakeRequest.customEncode
(Encoder out) void
HandshakeResponse.customEncode
(Encoder out) abstract void
Responder.writeError
(Schema schema, Object error, Encoder out) Writes an error message.abstract void
Requestor.writeRequest
(Schema schema, Object request, Encoder out) Writes a request message.abstract void
Responder.writeResponse
(Schema schema, Object response, Encoder out) Writes a response message. -
Uses of Encoder in org.apache.avro.ipc.generic
Modifier and TypeMethodDescriptionvoid
GenericResponder.writeError
(Schema schema, Object error, Encoder out) void
GenericRequestor.writeRequest
(Schema schema, Object request, Encoder out) void
GenericResponder.writeResponse
(Schema schema, Object response, Encoder out) -
Uses of Encoder in org.apache.avro.ipc.reflect
Modifier and TypeMethodDescriptionvoid
ReflectResponder.writeError
(Schema schema, Object error, Encoder out) -
Uses of Encoder in org.apache.avro.ipc.specific
Modifier and TypeMethodDescriptionvoid
SpecificResponder.writeError
(Schema schema, Object error, Encoder out) void
SpecificRequestor.writeRequest
(Schema schema, Object request, Encoder out) -
Uses of Encoder in org.apache.avro.perf.test
Modifier and TypeMethodDescriptionprotected Encoder
BasicState.newEncoder
(boolean direct, OutputStream out) protected Encoder
BasicState.newEncoder
(int blockSize, OutputStream out) -
Uses of Encoder in org.apache.avro.protobuf
-
Uses of Encoder in org.apache.avro.reflect
Modifier 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
Modifier 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) -
Uses of Encoder in org.apache.avro.thrift
Modifier and TypeMethodDescriptionprotected void
ThriftDatumWriter.writeBytes
(Object datum, Encoder out)