Interface DataTypeAdapter

All Known Implementing Classes:
DoubleAdapter, FloatAdapter, IntegerAdapter

public interface DataTypeAdapter
Defines an interface for getting a data type in various formats.
  • Method Summary

    Modifier and Type Method Description
    double getDouble​(ByteBuffer buf)
    Gets the value as a double.
    int getInt​(ByteBuffer buf)
    Gets the value as an int.
    long getLong​(ByteBuffer buf)
    Gets the value as a long.
  • Method Details

    • getInt

      int getInt​(ByteBuffer buf)
      Gets the value as an int.
      Parameters:
      buf - the buffer from which to get the value
      Returns:
      the value, as an int
    • getLong

      long getLong​(ByteBuffer buf)
      Gets the value as a long.
      Parameters:
      buf - the buffer from which to get the value
      Returns:
      the value, as a long
    • getDouble

      double getDouble​(ByteBuffer buf)
      Gets the value as a double.
      Parameters:
      buf - the buffer from which to get the value
      Returns:
      the value, as a double