public class AvroBinaryCodec<T> extends Object implements Codec<T>
| Modifier and Type | Field and Description | 
|---|---|
protected org.apache.avro.message.RawMessageDecoder<T> | 
decoder  | 
protected org.apache.avro.message.RawMessageEncoder<T> | 
encoder  | 
protected Class<T> | 
messageClass  | 
static String | 
NAME  | 
protected org.apache.avro.Schema | 
schema  | 
| Constructor and Description | 
|---|
AvroBinaryCodec(Class<T> messageClass)  | 
| Modifier and Type | Method and 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 
 | 
public static final String NAME
protected final Class<T> messageClass
protected final org.apache.avro.Schema schema
public AvroBinaryCodec(Class<T> messageClass)
Copyright © 2019 Nuxeo. All rights reserved.