Interface ColumnAccessor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int compareRows​(int lhsRowNum, int rhsRowNum)
      Compares two rows using a comparison that follows the same semantics as Comparator.compare(T, T)
      double getDouble​(int rowNum)
      Get the primitive double representation of the row.
      float getFloat​(int rowNum)
      Get the primitive float representation of the row.
      int getInt​(int rowNum)
      Get the primitive int representation of the row.
      long getLong​(int rowNum)
      Get the primitive long representation of the row.
      Object getObject​(int rowNum)
      Get the Object representation of the row.
      ColumnType getType()
      Get the type of the Column
      boolean isNull​(int rowNum)
      Get whether the value of a row is null
      int numRows()
      Get the number of rows
    • Method Detail

      • getType

        ColumnType getType()
        Get the type of the Column
        Returns:
        the type of the Column
      • numRows

        int numRows()
        Get the number of rows
        Returns:
        the number of rows
      • isNull

        boolean isNull​(int rowNum)
        Get whether the value of a row is null
        Parameters:
        rowNum - the row id, 0-indexed
        Returns:
        true if the value is null
      • getObject

        @Nullable
        Object getObject​(int rowNum)
        Get the Object representation of the row.
        Parameters:
        rowNum - the row id, 0-indexed
        Returns:
        the Object representation of the row. Returns null If isNull(int) is true.
      • getDouble

        double getDouble​(int rowNum)
        Get the primitive double representation of the row.
        Parameters:
        rowNum - the row id, 0-indexed
        Returns:
        the primitive double representation of the row. Returns 0D If isNull(int) is true.
      • getFloat

        float getFloat​(int rowNum)
        Get the primitive float representation of the row.
        Parameters:
        rowNum - the row id, 0-indexed
        Returns:
        the primitive float representation of the row. Returns 0F If isNull(int) is true.
      • getLong

        long getLong​(int rowNum)
        Get the primitive long representation of the row.
        Parameters:
        rowNum - the row id, 0-indexed
        Returns:
        the primitive long representation of the row. Returns 0L If isNull(int) is true.
      • getInt

        int getInt​(int rowNum)
        Get the primitive int representation of the row.
        Parameters:
        rowNum - the row id, 0-indexed
        Returns:
        the primitive int representation of the row. Returns 0 If isNull(int) is true.
      • compareRows

        int compareRows​(int lhsRowNum,
                        int rhsRowNum)
        Compares two rows using a comparison that follows the same semantics as Comparator.compare(T, T)

        This is not comparing the row Ids, but the values referred to by the row ids.

        Parameters:
        lhsRowNum - the row id of the left-hand-side of the comparison
        rhsRowNum - the row id of the right-hand-side of the comparison
        Returns:
        the result of the comparison of the two rows