public interface Data<T> extends Supplier<T>, Comparable<Data<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Data.Avro |
static class |
Data.AvroBuilder |
static interface |
Data.Builder<T> |
static class |
Data.Comparator |
static class |
Data.NativeImpl |
static class |
Data.Protobuf |
static class |
Data.ProtobufBuilder |
static class |
Data.Thrift |
static class |
Data.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static Data.Avro |
avro(Data<?> instance)
Returns a wrapped Avro record based on an instance of Data.
|
static Data.Avro |
avro(DataAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(Data<?> other) |
T |
get()
Returns underlying object.
|
static Class<DataAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
static Comparator<Data<?>> |
getComparator()
Returns comparator instance for Data objects.
|
String |
getId()
Exchange specific ID for the data provider.
|
String |
getName()
Data provider name.
|
static Class<OpenRtbProtobuf.Data> |
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.
|
List<Segment<?>> |
getSegment()
Array of segment objects.
|
static Class<DataThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<DataThrift._Fields,FieldMetaData> |
getThriftMetadataMap()
Returns Thrift metadata map for this struct.
|
default boolean |
isDefault()
True if all fields are set to default values.
|
boolean |
isDefaultId() |
boolean |
isDefaultName() |
boolean |
isDefaultSegment() |
static Data.NativeImpl |
nativeImpl(Data<?> instance)
Returns a POJO based on an instance of Data.
|
static Data.Builder<DataAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static Data.Builder<DataAvro> |
newAvroBuilder(Data<?> other)
Returns new Avro builder instance based on existing prototype Data.
|
static Data.Builder<DataAvro> |
newAvroBuilder(DataAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static Data.Builder<DataAvro> |
newAvroBuilder(DataAvro other)
Returns new Avro builder instance based on existing prototype.
|
Data.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static Data.Builder<Data.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static Data.Builder<Data.NativeImpl> |
newNativeImplBuilder(Data<?> other)
Returns a POJO builder instance based on existing prototype Data.
|
static Data.Builder<OpenRtbProtobuf.Data> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static Data.Builder<OpenRtbProtobuf.Data> |
newProtobufBuilder(Data<?> other)
Returns new Protobuf builder instance based on existing prototype Data.
|
static Data.Builder<OpenRtbProtobuf.Data> |
newProtobufBuilder(OpenRtbProtobuf.Data other)
Returns new Protobuf builder instance based on existing prototype.
|
static Data.Builder<DataThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static Data.Builder<DataThrift> |
newThriftBuilder(Data<?> other)
Returns new Thrift builder instance based on existing prototype Data.
|
static Data.Builder<DataThrift> |
newThriftBuilder(DataThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static Data.Protobuf |
protobuf(Data<?> instance)
Returns a wrapped Protobuf message based on an instance of Data.
|
static Data.Protobuf |
protobuf(OpenRtbProtobuf.Data wrapped)
Wraps an existing Protobuf message.
|
static Data.Thrift |
thrift(Data<?> instance)
Returns a wrapped Thrift struct based on an instance of Data.
|
static Data.Thrift |
thrift(DataThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
Data.Builder<T> newBuilder()
String getId()
boolean isDefaultId()
String getName()
boolean isDefaultName()
boolean isDefaultSegment()
static Comparator<Data<?>> getComparator()
default int compareTo(Data<?> other)
compareTo in interface Comparable<Data<?>>static Data.Builder<Data.NativeImpl> newNativeImplBuilder()
static Data.Builder<Data.NativeImpl> newNativeImplBuilder(Data<?> other)
static Data.NativeImpl nativeImpl(Data<?> instance)
static Data.Builder<DataAvro> newAvroBuilder()
static Data.Builder<DataAvro> newAvroBuilder(DataAvro other)
static Data.Builder<DataAvro> newAvroBuilder(DataAvro.Builder other)
static Data.Builder<DataAvro> newAvroBuilder(Data<?> other)
static Data.Avro avro(Data<?> instance)
static Schema getAvroSchema()
static Data.Builder<OpenRtbProtobuf.Data> newProtobufBuilder()
static Data.Builder<OpenRtbProtobuf.Data> newProtobufBuilder(OpenRtbProtobuf.Data other)
static Data.Builder<OpenRtbProtobuf.Data> newProtobufBuilder(Data<?> other)
static Data.Protobuf protobuf(Data<?> instance)
static Data.Protobuf protobuf(OpenRtbProtobuf.Data wrapped)
static Class<OpenRtbProtobuf.Data> getProtobufClass()
static Class<AdExchangeProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static Data.Builder<DataThrift> newThriftBuilder()
static Data.Builder<DataThrift> newThriftBuilder(DataThrift other)
static Data.Builder<DataThrift> newThriftBuilder(Data<?> other)
static Data.Thrift thrift(Data<?> instance)
static Data.Thrift thrift(DataThrift instance)
static Class<DataThrift> getThriftClass()
static Map<DataThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.