Package com.qfs.chunk

Interface IRowMapping

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int NO_ROW
      The empty value of the mapping.
    • Method Detail

      • get

        int get​(int row)
        Gets the mapped row.
        Parameters:
        row - the row
        Returns:
        the mapped value
        Throws:
        DiscardedDataException - if this row does not exist
      • getOrDefault

        int getOrDefault​(int row,
                         int defaultValue)
        Gets the mapped row or returns the default value if not mapped.
        Parameters:
        row - the row
        defaultValue - the default value
        Returns:
        the mapped row
      • size

        int size()
        Gets the maximum number of mapped rows.
        Returns:
        the maximum number of mapped rows
      • destroy

        Runnable destroy()
        Destroys the mapping.
        Returns:
        the Runnable to run to actually destroy the data