public static class LogEvent.Avro extends Object implements LogEvent<LogEventAvro>
LogEvent.Avro, LogEvent.AvroBuilder, LogEvent.Builder<T>, LogEvent.Comparator, LogEvent.NativeImpl, LogEvent.Protobuf, LogEvent.ProtobufBuilder, LogEvent.Thrift, LogEvent.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 |
|---|---|
LogEvent.Avro |
encoded() |
boolean |
equals(Object other) |
static LogEvent<LogEventAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
LogEventAvro |
get()
Returns underlying object.
|
SortedMap<String,String> |
getProperties()
Log event custom properties.
|
BidRequest<?> |
getRequest() |
BidResponse<?> |
getResponse()
Bid response submitted to the real-time bidding ad exchange.
|
long |
getTimestamp()
Log event timestamp, in milliseconds from epoch.
|
LogEventType<?> |
getType()
Log event type.
|
Supplier<byte[]> |
getUuid()
Log event unique identifier.
|
int |
hashCode() |
boolean |
isDefaultProperties() |
boolean |
isDefaultRequest() |
boolean |
isDefaultResponse() |
boolean |
isDefaultTimestamp() |
boolean |
isDefaultType() |
boolean |
isDefaultUuid() |
LogEvent.Builder<LogEventAvro> |
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 LogEventAvro get()
LogEventget in interface LogEvent<LogEventAvro>get in interface Supplier<LogEventAvro>public LogEvent.Builder<LogEventAvro> newBuilder()
LogEventnewBuilder in interface LogEvent<LogEventAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public Supplier<byte[]> getUuid()
LogEventgetUuid in interface LogEvent<LogEventAvro>public boolean isDefaultUuid()
isDefaultUuid in interface LogEvent<LogEventAvro>public long getTimestamp()
LogEventgetTimestamp in interface LogEvent<LogEventAvro>public boolean isDefaultTimestamp()
isDefaultTimestamp in interface LogEvent<LogEventAvro>public LogEventType<?> getType()
LogEventgetType in interface LogEvent<LogEventAvro>public boolean isDefaultType()
isDefaultType in interface LogEvent<LogEventAvro>public BidRequest<?> getRequest()
getRequest in interface LogEvent<LogEventAvro>public boolean isDefaultRequest()
isDefaultRequest in interface LogEvent<LogEventAvro>public BidResponse<?> getResponse()
LogEventgetResponse in interface LogEvent<LogEventAvro>public boolean isDefaultResponse()
isDefaultResponse in interface LogEvent<LogEventAvro>public SortedMap<String,String> getProperties()
LogEventgetProperties in interface LogEvent<LogEventAvro>public boolean isDefaultProperties()
isDefaultProperties in interface LogEvent<LogEventAvro>public LogEvent.Avro encoded()
public static LogEvent<LogEventAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.