public static class Segment.Avro extends Object implements Segment<SegmentAvro>
Segment.Avro, Segment.AvroBuilder, Segment.Builder<T>, Segment.Comparator, Segment.NativeImpl, Segment.Protobuf, Segment.ProtobufBuilder, Segment.Thrift, Segment.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 |
|---|---|
Segment.Avro |
encoded() |
boolean |
equals(Object other) |
static Segment<SegmentAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
SegmentAvro |
get()
Returns underlying object.
|
String |
getId()
ID of a data provider’s segment applicable to the user.
|
String |
getName()
Name of a data provider’s segment applicable to the user.
|
String |
getValue()
String representing the value of the segment.
|
int |
hashCode() |
boolean |
isDefaultId() |
boolean |
isDefaultName() |
boolean |
isDefaultValue() |
Segment.Builder<SegmentAvro> |
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 SegmentAvro get()
Segmentget in interface Supplier<SegmentAvro>get in interface Segment<SegmentAvro>public Segment.Builder<SegmentAvro> newBuilder()
SegmentnewBuilder in interface Segment<SegmentAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public String getId()
SegmentgetId in interface Segment<SegmentAvro>public boolean isDefaultId()
isDefaultId in interface Segment<SegmentAvro>public String getName()
SegmentgetName in interface Segment<SegmentAvro>public boolean isDefaultName()
isDefaultName in interface Segment<SegmentAvro>public String getValue()
SegmentgetValue in interface Segment<SegmentAvro>public boolean isDefaultValue()
isDefaultValue in interface Segment<SegmentAvro>public Segment.Avro encoded()
public static Segment<SegmentAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.