public class ByteType extends DataType<java.lang.Byte> implements DataTypeFactory, Streamer<java.lang.Byte>, FixedWidthType
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
int |
compareValueTo(java.lang.Byte val1,
java.lang.Byte val2) |
DataType<?> |
create() |
int |
fixedSize()
The fixed amount of memory a value object instance of type t requires.
|
java.lang.String |
getName() |
int |
id() |
java.lang.Byte |
readValueFrom(org.elasticsearch.common.io.stream.StreamInput in) |
Streamer<?> |
streamer() |
java.lang.Byte |
value(java.lang.Object value) |
void |
writeValueTo(org.elasticsearch.common.io.stream.StreamOutput out,
java.lang.Object v) |
public static final ByteType INSTANCE
public static final int ID
public java.lang.Byte value(java.lang.Object value)
public int compareValueTo(java.lang.Byte val1, java.lang.Byte val2)
compareValueTo
in class DataType<java.lang.Byte>
public int compareTo(java.lang.Object o)
public DataType<?> create()
create
in interface DataTypeFactory
public java.lang.Byte readValueFrom(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
readValueFrom
in interface Streamer<java.lang.Byte>
java.io.IOException
public void writeValueTo(org.elasticsearch.common.io.stream.StreamOutput out, java.lang.Object v) throws java.io.IOException
writeValueTo
in interface Streamer<java.lang.Byte>
java.io.IOException
public int fixedSize()
FixedWidthType
fixedSize
in interface FixedWidthType