public static class Simple.Avro extends Object implements Simple<SimpleAvro>
Simple.Avro, Simple.AvroBuilder, Simple.Builder<T>, Simple.Comparator, Simple.NativeImpl, Simple.Protobuf, Simple.ProtobufBuilder, Simple.Thrift, Simple.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 |
|---|---|
Simple.Avro |
encoded() |
boolean |
equals(Object other) |
static Simple<SimpleAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
SimpleAvro |
get()
Returns underlying object.
|
Supplier<byte[]> |
getBar()
field #2
|
double |
getBaz()
field #3
|
long |
getFoo()
field #1
|
int |
hashCode() |
boolean |
isDefaultBar() |
boolean |
isDefaultBaz() |
boolean |
isDefaultFoo() |
Simple.Builder<SimpleAvro> |
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, getBlab, getComparator, getProtobufClass, getProtobufDescriptor, getProtobufProtocolClass, getProtobufProtocolDescriptor, getThriftClass, getThriftMetadataMap, isDefault, isDefaultBlab, 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 SimpleAvro get()
Simpleget in interface Simple<SimpleAvro>get in interface Supplier<SimpleAvro>public Simple.Builder<SimpleAvro> newBuilder()
SimplenewBuilder in interface Simple<SimpleAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public long getFoo()
SimplegetFoo in interface Simple<SimpleAvro>public boolean isDefaultFoo()
isDefaultFoo in interface Simple<SimpleAvro>public Supplier<byte[]> getBar()
SimplegetBar in interface Simple<SimpleAvro>public boolean isDefaultBar()
isDefaultBar in interface Simple<SimpleAvro>public double getBaz()
SimplegetBaz in interface Simple<SimpleAvro>public boolean isDefaultBaz()
isDefaultBaz in interface Simple<SimpleAvro>public Simple.Avro encoded()
public static Simple<SimpleAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.