Interface GroupByVectorColumnSelector

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getGroupingKeySize()
      Get the size in bytes of the key parts generated by this column.
      void reset()
      Reset any internal state held by this selector.
      int writeKeys​(org.apache.datasketches.memory.WritableMemory keySpace, int keySize, int keyOffset, int startRow, int endRow)
      Write key parts for this column, from startRow (inclusive) to endRow (exclusive), into keySpace starting at keyOffset.
      void writeKeyToResultRow​(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition)
      Write key parts for this column into a particular result row.
    • Method Detail

      • getGroupingKeySize

        int getGroupingKeySize()
        Get the size in bytes of the key parts generated by this column.
      • writeKeys

        int writeKeys​(org.apache.datasketches.memory.WritableMemory keySpace,
                      int keySize,
                      int keyOffset,
                      int startRow,
                      int endRow)
        Write key parts for this column, from startRow (inclusive) to endRow (exclusive), into keySpace starting at keyOffset.
        Parameters:
        keySpace - key memory
        keySize - size of the overall key (not just the part for this column)
        keyOffset - starting position for the first key part within keySpace
        startRow - starting row (inclusive) within the current vector
        endRow - ending row (exclusive) within the current vector
        Returns:
        estimated increase in internal state footprint, in bytes, as a result of this operation. May be zero if memory did not increase as a result of this operation. Will not be negative.
      • writeKeyToResultRow

        void writeKeyToResultRow​(MemoryPointer keyMemory,
                                 int keyOffset,
                                 ResultRow resultRow,
                                 int resultRowPosition)
        Write key parts for this column into a particular result row.
        Parameters:
        keyMemory - key memory
        keyOffset - starting position for this key part within keyMemory (starting from MemoryPointer.position)
        resultRow - result row to receive key parts
        resultRowPosition - position within the result row for this key part