Package org.nuxeo.lib.stream.codec
Class AvroBinaryCodec<T>
- java.lang.Object
-
- org.nuxeo.lib.stream.codec.AvroBinaryCodec<T>
-
-
Constructor Summary
Constructors Constructor Description AvroBinaryCodec(Class<T> messageClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
decode(byte[] data)
Decodes the byte array returns an object.byte[]
encode(T object)
Encodes the object returns a byte array representation.String
getName()
Returns the codec name
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
schema
protected final org.apache.avro.Schema schema
-
encoder
protected final org.apache.avro.message.RawMessageEncoder<T> encoder
-
decoder
protected final org.apache.avro.message.RawMessageDecoder<T> decoder
-
-