Package org.apache.avro.ipc.reflect
Class ReflectResponder
java.lang.Object
org.apache.avro.ipc.Responder
org.apache.avro.ipc.generic.GenericResponder
org.apache.avro.ipc.specific.SpecificResponder
org.apache.avro.ipc.reflect.ReflectResponder
Responder
for existing interfaces.-
Field Summary
Fields inherited from class org.apache.avro.ipc.Responder
rpcMetaPlugins
-
Constructor Summary
ConstructorDescriptionReflectResponder
(Class iface, Object impl) ReflectResponder
(Class iface, Object impl, ReflectData data) ReflectResponder
(Protocol protocol, Object impl) ReflectResponder
(Protocol protocol, Object impl, ReflectData data) -
Method Summary
Modifier and TypeMethodDescriptionprotected DatumReader
<Object> getDatumReader
(Schema actual, Schema expected) protected DatumWriter
<Object> getDatumWriter
(Schema schema) void
writeError
(Schema schema, Object error, Encoder out) Writes an error message.Methods inherited from class org.apache.avro.ipc.specific.SpecificResponder
getSpecificData, respond
Methods inherited from class org.apache.avro.ipc.generic.GenericResponder
getGenericData, readRequest, writeResponse
-
Constructor Details
-
ReflectResponder
-
ReflectResponder
-
ReflectResponder
-
ReflectResponder
-
-
Method Details
-
getReflectData
-
getDatumWriter
- Overrides:
getDatumWriter
in classSpecificResponder
-
getDatumReader
- Overrides:
getDatumReader
in classSpecificResponder
-
writeError
Description copied from class:Responder
Writes an error message.- Overrides:
writeError
in classSpecificResponder
- Throws:
IOException
-