Interface ColumnType<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T parseColumn​(java.nio.ByteBuffer buffer, int length)
      Parses a value of this type from buffer.
      java.nio.ByteBuffer serialize​(T value)
      Serialize into ByteBuffer and keeps the position at beginning of ByteBuffer
    • Method Detail

      • parseColumn

        T parseColumn​(java.nio.ByteBuffer buffer,
                      int length)
        Parses a value of this type from buffer. Value will be parsed from current position of the buffer. After completion of the function, position will be moved by "length" bytes.
        Parameters:
        buffer - Buffer to parse column from
        length - Serialized value size in buffer is as big as length
        Returns:
        value as Java type
      • serialize

        java.nio.ByteBuffer serialize​(T value)
        Serialize into ByteBuffer and keeps the position at beginning of ByteBuffer
        Parameters:
        value - the value to serialize
        Returns:
        A ByteBuffer containing the serialized value