Interface IndexValueSerializer<V>
public interface IndexValueSerializer<V>
-
Method Summary
Modifier and TypeMethodDescription@Nullable Vdeserialize(@NonNull ByteBuffer buffer) Deserialize a value frombuffer.booleanisNullSerialized(@NonNull ByteBuffer buffer) Determines whether the serialized value at the currentbufferposition representsnull.@NonNull ByteBufferserialize(@Nullable V value, @NonNull ByteBuffer target) Serializevalueintotarget, returnstarget.intserializedSize(@Nullable V value) voidskip(@NonNull ByteBuffer buffer) Skips an element, only updating thebuffer'sBuffer.position().
-
Method Details
-
serializedSize
-
serialize
Serializevalueintotarget, returnstarget. -
deserialize
Deserialize a value frombuffer. Implementations must not assume that the givenByteBufferonly contains data for the value to deserialize, other data likely follows. -
isNullSerialized
Determines whether the serialized value at the currentbufferposition representsnull.Implementations must not modify the caller-visible state of
buffer. -
skip
Skips an element, only updating thebuffer'sBuffer.position().
-