public class LongGroupByVectorColumnSelector extends Object implements GroupByVectorColumnSelector
| Modifier and Type | Method and Description |
|---|---|
int |
getGroupingKeySize()
Get the size in bytes of the key parts generated by this column.
|
void |
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(org.apache.datasketches.memory.Memory keyMemory,
int keyOffset,
ResultRow resultRow,
int resultRowPosition)
Write key parts for this column into a particular result row.
|
public int getGroupingKeySize()
GroupByVectorColumnSelectorgetGroupingKeySize in interface GroupByVectorColumnSelectorpublic void writeKeys(org.apache.datasketches.memory.WritableMemory keySpace,
int keySize,
int keyOffset,
int startRow,
int endRow)
GroupByVectorColumnSelectorwriteKeys in interface GroupByVectorColumnSelectorkeySpace - key memorykeySize - size of the overall key (not just the part for this column)keyOffset - starting position for the first key part within keySpacestartRow - starting row (inclusive) within the current vectorendRow - ending row (exclusive) within the current vectorpublic void writeKeyToResultRow(org.apache.datasketches.memory.Memory keyMemory,
int keyOffset,
ResultRow resultRow,
int resultRowPosition)
GroupByVectorColumnSelectorwriteKeyToResultRow in interface GroupByVectorColumnSelectorkeyMemory - key memorykeyOffset - starting positionĀ for this key part within keyMemoryresultRow - result row to receive key partsresultRowPosition - position within the result row for this key partCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.