V - Type of the attribute associated with the AttributeSerializerpublic interface AttributeSerializer<V>
PropertyKey is defined using a data type specified via PropertyKeyMaker for which a custom serializer
is configured, then it will use this custom serializer for persistence operations.RelationTypeMaker,
"Datatype and Attribute Serializer Configuration" manual chapter| Modifier and Type | Method and Description |
|---|---|
default V |
convert(Object value)
Converts the given (not-null) value to the expected datatype V.
|
V |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
default void |
verifyAttribute(V value)
Verifies the given (not-null) attribute value is valid.
|
void |
write(WriteBuffer buffer,
V attribute)
Writes the attribute value to the given WriteBuffer.
|
V read(ScanBuffer buffer)
buffer - ReadBuffer to read attribute fromvoid write(WriteBuffer buffer, V attribute)
buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferdefault void verifyAttribute(V value)
IllegalArgumentException if the value is invalid,
otherwise simply returns.value - to verifydefault V convert(Object value)
IllegalArgumentException if it cannot be converted.value - to convertCopyright © 2012–2015. All rights reserved.