Interface IndexValueSerializer<V>


public interface IndexValueSerializer<V>
  • Method Details

    • serializedSize

      int serializedSize(@Nullable V value)
    • serialize

      @NonNull ByteBuffer serialize(@Nullable V value, @NonNull ByteBuffer target)
      Serialize value into target, returns target.
    • deserialize

      @Nullable V deserialize(@NonNull ByteBuffer buffer)
      Deserialize a value from buffer. Implementations must not assume that the given ByteBuffer only contains data for the value to deserialize, other data likely follows.
    • isNullSerialized

      boolean isNullSerialized(@NonNull ByteBuffer buffer)
      Determines whether the serialized value at the current buffer position represents null.

      Implementations must not modify the caller-visible state of buffer.

    • skip

      void skip(@NonNull ByteBuffer buffer)
      Skips an element, only updating the buffer's Buffer.position().