public interface LogEvent<T> extends Supplier<T>, Comparable<LogEvent<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
LogEvent.Avro |
static class |
LogEvent.AvroBuilder |
static interface |
LogEvent.Builder<T> |
static class |
LogEvent.Comparator |
static class |
LogEvent.NativeImpl |
static class |
LogEvent.Protobuf |
static class |
LogEvent.ProtobufBuilder |
static class |
LogEvent.Thrift |
static class |
LogEvent.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static LogEvent.Avro |
avro(LogEvent<?> instance)
Returns a wrapped Avro record based on an instance of LogEvent.
|
static LogEvent.Avro |
avro(LogEventAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(LogEvent<?> other) |
T |
get()
Returns underlying object.
|
static Class<LogEventAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
static Comparator<LogEvent<?>> |
getComparator()
Returns comparator instance for LogEvent objects.
|
SortedMap<String,String> |
getProperties()
Log event custom properties.
|
static Class<AdExchangeProtobuf.LogEvent> |
getProtobufClass()
Returns Protobuf class for this struct.
|
static com.google.protobuf.Descriptors.Descriptor |
getProtobufDescriptor()
Returns Protobuf descriptor for this struct.
|
static Class<AdExchangeProtobuf> |
getProtobufProtocolClass()
Returns Protobuf protocol class for this struct.
|
static com.google.protobuf.Descriptors.FileDescriptor |
getProtobufProtocolDescriptor()
Returns Protobuf protocol descriptor for this struct.
|
BidRequest<?> |
getRequest() |
BidResponse<?> |
getResponse()
Bid response submitted to the real-time bidding ad exchange.
|
static Class<LogEventThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<LogEventThrift._Fields,FieldMetaData> |
getThriftMetadataMap()
Returns Thrift metadata map for this struct.
|
long |
getTimestamp()
Log event timestamp, in milliseconds from epoch.
|
LogEventType<?> |
getType()
Log event type.
|
Supplier<byte[]> |
getUuid()
Log event unique identifier.
|
default boolean |
isDefault()
True if all fields are set to default values.
|
boolean |
isDefaultProperties() |
boolean |
isDefaultRequest() |
boolean |
isDefaultResponse() |
boolean |
isDefaultTimestamp() |
boolean |
isDefaultType() |
boolean |
isDefaultUuid() |
static LogEvent.NativeImpl |
nativeImpl(LogEvent<?> instance)
Returns a POJO based on an instance of LogEvent.
|
static LogEvent.Builder<LogEventAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static LogEvent.Builder<LogEventAvro> |
newAvroBuilder(LogEvent<?> other)
Returns new Avro builder instance based on existing prototype LogEvent.
|
static LogEvent.Builder<LogEventAvro> |
newAvroBuilder(LogEventAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static LogEvent.Builder<LogEventAvro> |
newAvroBuilder(LogEventAvro other)
Returns new Avro builder instance based on existing prototype.
|
LogEvent.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static LogEvent.Builder<LogEvent.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static LogEvent.Builder<LogEvent.NativeImpl> |
newNativeImplBuilder(LogEvent<?> other)
Returns a POJO builder instance based on existing prototype LogEvent.
|
static LogEvent.Builder<AdExchangeProtobuf.LogEvent> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static LogEvent.Builder<AdExchangeProtobuf.LogEvent> |
newProtobufBuilder(AdExchangeProtobuf.LogEvent other)
Returns new Protobuf builder instance based on existing prototype.
|
static LogEvent.Builder<AdExchangeProtobuf.LogEvent> |
newProtobufBuilder(LogEvent<?> other)
Returns new Protobuf builder instance based on existing prototype LogEvent.
|
static LogEvent.Builder<LogEventThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static LogEvent.Builder<LogEventThrift> |
newThriftBuilder(LogEvent<?> other)
Returns new Thrift builder instance based on existing prototype LogEvent.
|
static LogEvent.Builder<LogEventThrift> |
newThriftBuilder(LogEventThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static LogEvent.Protobuf |
protobuf(AdExchangeProtobuf.LogEvent wrapped)
Wraps an existing Protobuf message.
|
static LogEvent.Protobuf |
protobuf(LogEvent<?> instance)
Returns a wrapped Protobuf message based on an instance of LogEvent.
|
static LogEvent.Thrift |
thrift(LogEvent<?> instance)
Returns a wrapped Thrift struct based on an instance of LogEvent.
|
static LogEvent.Thrift |
thrift(LogEventThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
LogEvent.Builder<T> newBuilder()
Supplier<byte[]> getUuid()
boolean isDefaultUuid()
long getTimestamp()
boolean isDefaultTimestamp()
LogEventType<?> getType()
boolean isDefaultType()
BidRequest<?> getRequest()
boolean isDefaultRequest()
BidResponse<?> getResponse()
boolean isDefaultResponse()
boolean isDefaultProperties()
static Comparator<LogEvent<?>> getComparator()
default int compareTo(LogEvent<?> other)
compareTo in interface Comparable<LogEvent<?>>static LogEvent.Builder<LogEvent.NativeImpl> newNativeImplBuilder()
static LogEvent.Builder<LogEvent.NativeImpl> newNativeImplBuilder(LogEvent<?> other)
static LogEvent.NativeImpl nativeImpl(LogEvent<?> instance)
static LogEvent.Builder<LogEventAvro> newAvroBuilder()
static LogEvent.Builder<LogEventAvro> newAvroBuilder(LogEventAvro other)
static LogEvent.Builder<LogEventAvro> newAvroBuilder(LogEventAvro.Builder other)
static LogEvent.Builder<LogEventAvro> newAvroBuilder(LogEvent<?> other)
static LogEvent.Avro avro(LogEvent<?> instance)
static LogEvent.Avro avro(LogEventAvro wrapped)
static Class<LogEventAvro> getAvroClass()
static Schema getAvroSchema()
static LogEvent.Builder<AdExchangeProtobuf.LogEvent> newProtobufBuilder()
static LogEvent.Builder<AdExchangeProtobuf.LogEvent> newProtobufBuilder(AdExchangeProtobuf.LogEvent other)
static LogEvent.Builder<AdExchangeProtobuf.LogEvent> newProtobufBuilder(LogEvent<?> other)
static LogEvent.Protobuf protobuf(LogEvent<?> instance)
static LogEvent.Protobuf protobuf(AdExchangeProtobuf.LogEvent wrapped)
static Class<AdExchangeProtobuf.LogEvent> getProtobufClass()
static Class<AdExchangeProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static LogEvent.Builder<LogEventThrift> newThriftBuilder()
static LogEvent.Builder<LogEventThrift> newThriftBuilder(LogEventThrift other)
static LogEvent.Builder<LogEventThrift> newThriftBuilder(LogEvent<?> other)
static LogEvent.Thrift thrift(LogEvent<?> instance)
static LogEvent.Thrift thrift(LogEventThrift instance)
static Class<LogEventThrift> getThriftClass()
static Map<LogEventThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.