public interface Bytes<T> extends Supplier<T>, Comparable<Bytes<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Bytes.Avro |
static class |
Bytes.AvroBuilder |
static interface |
Bytes.Builder<T> |
static class |
Bytes.Comparator |
static class |
Bytes.NativeImpl |
static class |
Bytes.Protobuf |
static class |
Bytes.ProtobufBuilder |
static class |
Bytes.Thrift |
static class |
Bytes.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static Bytes.Avro |
avro(Bytes<?> instance)
Returns a wrapped Avro record based on an instance of Bytes.
|
static Bytes.Avro |
avro(BytesAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(Bytes<?> other) |
T |
get()
Returns underlying object.
|
static Class<BytesAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
Supplier<byte[]> |
getBytesField() |
List<Supplier<byte[]>> |
getBytesList() |
SortedMap<String,Supplier<byte[]>> |
getBytesMap() |
static Comparator<Bytes<?>> |
getComparator()
Returns comparator instance for Bytes objects.
|
static Class<NestedProtobuf.Bytes> |
getProtobufClass()
Returns Protobuf class for this struct.
|
static com.google.protobuf.Descriptors.Descriptor |
getProtobufDescriptor()
Returns Protobuf descriptor for this struct.
|
static Class<NestedProtobuf> |
getProtobufProtocolClass()
Returns Protobuf protocol class for this struct.
|
static com.google.protobuf.Descriptors.FileDescriptor |
getProtobufProtocolDescriptor()
Returns Protobuf protocol descriptor for this struct.
|
static Class<BytesThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<BytesThrift._Fields,FieldMetaData> |
getThriftMetadataMap()
Returns Thrift metadata map for this struct.
|
default boolean |
isDefault()
True if all fields are set to default values.
|
boolean |
isDefaultBytesField() |
boolean |
isDefaultBytesList() |
boolean |
isDefaultBytesMap() |
static Bytes.NativeImpl |
nativeImpl(Bytes<?> instance)
Returns a POJO based on an instance of Bytes.
|
static Bytes.Builder<BytesAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static Bytes.Builder<BytesAvro> |
newAvroBuilder(Bytes<?> other)
Returns new Avro builder instance based on existing prototype Bytes.
|
static Bytes.Builder<BytesAvro> |
newAvroBuilder(BytesAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static Bytes.Builder<BytesAvro> |
newAvroBuilder(BytesAvro other)
Returns new Avro builder instance based on existing prototype.
|
Bytes.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static Bytes.Builder<Bytes.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static Bytes.Builder<Bytes.NativeImpl> |
newNativeImplBuilder(Bytes<?> other)
Returns a POJO builder instance based on existing prototype Bytes.
|
static Bytes.Builder<NestedProtobuf.Bytes> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static Bytes.Builder<NestedProtobuf.Bytes> |
newProtobufBuilder(Bytes<?> other)
Returns new Protobuf builder instance based on existing prototype Bytes.
|
static Bytes.Builder<NestedProtobuf.Bytes> |
newProtobufBuilder(NestedProtobuf.Bytes other)
Returns new Protobuf builder instance based on existing prototype.
|
static Bytes.Builder<BytesThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static Bytes.Builder<BytesThrift> |
newThriftBuilder(Bytes<?> other)
Returns new Thrift builder instance based on existing prototype Bytes.
|
static Bytes.Builder<BytesThrift> |
newThriftBuilder(BytesThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static Bytes.Protobuf |
protobuf(Bytes<?> instance)
Returns a wrapped Protobuf message based on an instance of Bytes.
|
static Bytes.Protobuf |
protobuf(NestedProtobuf.Bytes wrapped)
Wraps an existing Protobuf message.
|
static Bytes.Thrift |
thrift(Bytes<?> instance)
Returns a wrapped Thrift struct based on an instance of Bytes.
|
static Bytes.Thrift |
thrift(BytesThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
Bytes.Builder<T> newBuilder()
Supplier<byte[]> getBytesField()
boolean isDefaultBytesField()
boolean isDefaultBytesList()
boolean isDefaultBytesMap()
static Comparator<Bytes<?>> getComparator()
default int compareTo(Bytes<?> other)
compareTo in interface Comparable<Bytes<?>>static Bytes.Builder<Bytes.NativeImpl> newNativeImplBuilder()
static Bytes.Builder<Bytes.NativeImpl> newNativeImplBuilder(Bytes<?> other)
static Bytes.NativeImpl nativeImpl(Bytes<?> instance)
static Bytes.Builder<BytesAvro> newAvroBuilder()
static Bytes.Builder<BytesAvro> newAvroBuilder(BytesAvro other)
static Bytes.Builder<BytesAvro> newAvroBuilder(BytesAvro.Builder other)
static Bytes.Builder<BytesAvro> newAvroBuilder(Bytes<?> other)
static Bytes.Avro avro(Bytes<?> instance)
static Bytes.Avro avro(BytesAvro wrapped)
static Schema getAvroSchema()
static Bytes.Builder<NestedProtobuf.Bytes> newProtobufBuilder()
static Bytes.Builder<NestedProtobuf.Bytes> newProtobufBuilder(NestedProtobuf.Bytes other)
static Bytes.Builder<NestedProtobuf.Bytes> newProtobufBuilder(Bytes<?> other)
static Bytes.Protobuf protobuf(Bytes<?> instance)
static Bytes.Protobuf protobuf(NestedProtobuf.Bytes wrapped)
static Class<NestedProtobuf.Bytes> getProtobufClass()
static Class<NestedProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static Bytes.Builder<BytesThrift> newThriftBuilder()
static Bytes.Builder<BytesThrift> newThriftBuilder(BytesThrift other)
static Bytes.Builder<BytesThrift> newThriftBuilder(Bytes<?> other)
static Bytes.Thrift thrift(Bytes<?> instance)
static Bytes.Thrift thrift(BytesThrift instance)
static Class<BytesThrift> getThriftClass()
static Map<BytesThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.