Interface GroupedTopNRowNumberAccumulator.RowReference

  • Enclosing class:
    GroupedTopNRowNumberAccumulator

    public static interface GroupedTopNRowNumberAccumulator.RowReference
    Reference to an input row.

    Note: RowReference gives us the ability to defer row ID generation (which can be expensive in tight loops).

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int compareTo​(it.unimi.dsi.fastutil.longs.LongComparator rowIdComparator, long rowId)
      Compares the referenced row to the specified row ID using the provided row ID comparator.
      long extractRowId()
      Extract a stable row ID that can be used to reference this row at a future point.
    • Method Detail

      • compareTo

        int compareTo​(it.unimi.dsi.fastutil.longs.LongComparator rowIdComparator,
                      long rowId)
        Compares the referenced row to the specified row ID using the provided row ID comparator.
      • extractRowId

        long extractRowId()
        Extract a stable row ID that can be used to reference this row at a future point.

        This accumulator will not retain any references to the RowReference object.