Package com.qfs.chunk

Interface IArrayReader

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      boolean isNull​(int position)
      Gets whether null is stored in a given row at a given position.
      Object read​(int position)
      Reads a value at some index in an array.
      default boolean readBoolean​(int position)
      Reads a boolean primitive value from the array.
      default double readDouble​(int position)
      Reads a double primitive value from the array.
      default float readFloat​(int position)
      Reads a float primitive value from the array.
      default int readInt​(int position)
      Reads an int primitive value from the array.
      default long readLong​(int position)
      Reads a long primitive value from the array.
      default IVector readVector​(int position)
      Reads an IVector value from the array.
    • Method Detail

      • isNull

        boolean isNull​(int position)
        Gets whether null is stored in a given row at a given position.
        Parameters:
        position - 0-based index in an array
        Returns:
        true if the element stored at that position is null, false otherwise
      • read

        Object read​(int position)
        Reads a value at some index in an array.
        Parameters:
        position - 0-based index in an array
        Returns:
        the data stored at that position in the array
      • readBoolean

        default boolean readBoolean​(int position)
        Reads a boolean primitive value from the array.

        An exception is thrown if the value is not of the right type.

        Parameters:
        position - 0-based index in an array
        Returns:
        boolean value
      • readInt

        default int readInt​(int position)
        Reads an int primitive value from the array.

        An exception is thrown if the value is not of the right type.

        Parameters:
        position - 0-based index in an array
        Returns:
        int value
      • readLong

        default long readLong​(int position)
        Reads a long primitive value from the array.

        An exception is thrown if the value is not of the right type.

        Parameters:
        position - 0-based index in an array
        Returns:
        long value
      • readDouble

        default double readDouble​(int position)
        Reads a double primitive value from the array.

        An exception is thrown if the value is not of the right type.

        Parameters:
        position - 0-based index in an array
        Returns:
        double value
      • readFloat

        default float readFloat​(int position)
        Reads a float primitive value from the array.

        An exception is thrown if the value is not of the right type.

        Parameters:
        position - 0-based index in an array
        Returns:
        float value
      • readVector

        default IVector readVector​(int position)
        Reads an IVector value from the array.

        An exception is thrown if the value is not of the right type.

        Parameters:
        position - 0-based index in an array
        Returns:
        vector instance