public static class Publisher.Avro extends Object implements Publisher<PublisherAvro>
Publisher.Avro, Publisher.AvroBuilder, Publisher.Builder<T>, Publisher.Comparator, Publisher.NativeImpl, Publisher.Protobuf, Publisher.ProtobufBuilder, Publisher.Thrift, Publisher.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 |
|---|---|
Publisher.Avro |
encoded() |
boolean |
equals(Object other) |
static Publisher<PublisherAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
PublisherAvro |
get()
Returns underlying object.
|
List<String> |
getCat()
Array of IAB content categories for the publisher.
|
String |
getDomain()
Publisher’s highest level domain name, for example “foopub.com”.
|
String |
getId()
Publisher ID on the exchange.
|
String |
getName()
Publisher name (may be masked at publisher’s request).
|
int |
hashCode() |
boolean |
isDefaultCat() |
boolean |
isDefaultDomain() |
boolean |
isDefaultId() |
boolean |
isDefaultName() |
Publisher.Builder<PublisherAvro> |
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 PublisherAvro get()
Publisherget in interface Supplier<PublisherAvro>get in interface Publisher<PublisherAvro>public Publisher.Builder<PublisherAvro> newBuilder()
PublishernewBuilder in interface Publisher<PublisherAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public String getId()
PublishergetId in interface Publisher<PublisherAvro>public boolean isDefaultId()
isDefaultId in interface Publisher<PublisherAvro>public String getName()
PublishergetName in interface Publisher<PublisherAvro>public boolean isDefaultName()
isDefaultName in interface Publisher<PublisherAvro>public List<String> getCat()
PublishergetCat in interface Publisher<PublisherAvro>public boolean isDefaultCat()
isDefaultCat in interface Publisher<PublisherAvro>public String getDomain()
PublishergetDomain in interface Publisher<PublisherAvro>public boolean isDefaultDomain()
isDefaultDomain in interface Publisher<PublisherAvro>public Publisher.Avro encoded()
public static Publisher<PublisherAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.