public static class Data.Avro extends Object implements Data<DataAvro>
Data.Avro, Data.AvroBuilder, Data.Builder<T>, Data.Comparator, Data.NativeImpl, Data.Protobuf, Data.ProtobufBuilder, Data.Thrift, Data.ThriftBuilder| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Avro(byte[] binaryEncoding)
Constructs a new Avro instance based on a message's binary encoding.
|
| Modifier and Type | Method and Description |
|---|---|
Data.Avro |
encoded() |
boolean |
equals(Object other) |
static Data<DataAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
DataAvro |
get()
Returns underlying object.
|
String |
getId()
Exchange specific ID for the data provider.
|
String |
getName()
Data provider name.
|
List<Segment<?>> |
getSegment()
Array of segment objects.
|
int |
hashCode() |
boolean |
isDefaultId() |
boolean |
isDefaultName() |
boolean |
isDefaultSegment() |
Data.Builder<DataAvro> |
newBuilder()
Creates a new builder based on this object.
|
byte[] |
toByteArray()
Returns an Avro binary encoding of this record.
|
ByteBuffer |
toByteBuffer()
Returns the Avro binary encoding of this record wrapped in a read-only buffer.
|
String |
toString() |
avro, avro, compareTo, getAvroClass, getAvroSchema, getComparator, getProtobufClass, getProtobufDescriptor, getProtobufProtocolClass, getProtobufProtocolDescriptor, getThriftClass, getThriftMetadataMap, isDefault, nativeImpl, newAvroBuilder, newAvroBuilder, newAvroBuilder, newAvroBuilder, newNativeImplBuilder, newNativeImplBuilder, newProtobufBuilder, newProtobufBuilder, newProtobufBuilder, newThriftBuilder, newThriftBuilder, newThriftBuilder, protobuf, protobuf, thrift, thriftpublic static final long serialVersionUID
public Avro(byte[] binaryEncoding)
public Data.Builder<DataAvro> newBuilder()
DatanewBuilder in interface Data<DataAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public String getId()
Datapublic boolean isDefaultId()
isDefaultId in interface Data<DataAvro>public boolean isDefaultName()
isDefaultName in interface Data<DataAvro>public List<Segment<?>> getSegment()
DatagetSegment in interface Data<DataAvro>public boolean isDefaultSegment()
isDefaultSegment in interface Data<DataAvro>public Data.Avro encoded()
public static Data<DataAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.