public interface OrderPreservingSerializer<V> extends AttributeSerializer<V>
AttributeSerializer to provide a serialization that is byte order preserving, i.e. the
order of the elements (as given by its Comparable implementation) corresponds to the natural order of the
serialized byte representation representation.| Modifier and Type | Method and Description |
|---|---|
V |
readByteOrder(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer assuming it was written in byte order.
|
void |
writeByteOrder(WriteBuffer buffer,
V 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.
|
convert, read, verifyAttribute, writeV readByteOrder(ScanBuffer buffer)
buffer - ReadBuffer to read attribute fromvoid writeByteOrder(WriteBuffer buffer, V attribute)
buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferCopyright © 2012–2015. All rights reserved.