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