Package org.apache.avro.ipc.generic
Class GenericResponder
java.lang.Object
org.apache.avro.ipc.Responder
org.apache.avro.ipc.generic.GenericResponder
- Direct Known Subclasses:
SpecificResponder
Responder
implementation for generic Java data.-
Field Summary
Fields inherited from class org.apache.avro.ipc.Responder
rpcMetaPlugins
-
Constructor Summary
ConstructorDescriptionGenericResponder
(Protocol local) GenericResponder
(Protocol local, GenericData data) -
Method Summary
Modifier and TypeMethodDescriptionprotected DatumReader
<Object> getDatumReader
(Schema actual, Schema expected) protected DatumWriter
<Object> getDatumWriter
(Schema schema) readRequest
(Schema actual, Schema expected, Decoder in) Reads a request message.void
writeError
(Schema schema, Object error, Encoder out) Writes an error message.void
writeResponse
(Schema schema, Object response, Encoder out) Writes a response message.
-
Constructor Details
-
GenericResponder
-
GenericResponder
-
-
Method Details
-
getGenericData
-
getDatumWriter
-
getDatumReader
-
readRequest
Description copied from class:Responder
Reads a request message.- Specified by:
readRequest
in classResponder
- Throws:
IOException
-
writeResponse
Description copied from class:Responder
Writes a response message.- Specified by:
writeResponse
in classResponder
- Throws:
IOException
-
writeError
Description copied from class:Responder
Writes an error message.- Specified by:
writeError
in classResponder
- Throws:
IOException
-