public class DoubleSerializer extends Object implements OrderPreservingSerializer<Double>
Constructor and Description |
---|
DoubleSerializer() |
Modifier and Type | Method and Description |
---|---|
Double |
convert(Object value)
Converts the given (not-null) value to the expected datatype V.
|
Double |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
Double |
readByteOrder(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer assuming it was written in byte order.
|
void |
write(WriteBuffer buffer,
Double attribute)
Writes the attribute value to the given WriteBuffer.
|
void |
writeByteOrder(WriteBuffer buffer,
Double attribute)
Writes the attribute value to the given WriteBuffer such that the byte order of the result is equal to the
natural order of the attribute.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
verifyAttribute
public Double convert(Object value)
AttributeSerializer
IllegalArgumentException
if it cannot be converted.convert
in interface AttributeSerializer<Double>
value
- to convertpublic Double read(ScanBuffer buffer)
AttributeSerializer
read
in interface AttributeSerializer<Double>
buffer
- ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, Double attribute)
AttributeSerializer
write
in interface AttributeSerializer<Double>
buffer
- WriteBuffer to write attribute toattribute
- Attribute to write to WriteBufferpublic Double readByteOrder(ScanBuffer buffer)
OrderPreservingSerializer
readByteOrder
in interface OrderPreservingSerializer<Double>
buffer
- ReadBuffer to read attribute frompublic void writeByteOrder(WriteBuffer buffer, Double attribute)
OrderPreservingSerializer
writeByteOrder
in interface OrderPreservingSerializer<Double>
buffer
- WriteBuffer to write attribute toattribute
- Attribute to write to WriteBufferCopyright © 2012–2017. All rights reserved.