Package io.trino.operator
Class MultiChannelGroupByHash
java.lang.Object
io.trino.operator.MultiChannelGroupByHash
- All Implemented Interfaces:
GroupByHash
-
Constructor Summary
ConstructorsConstructorDescriptionMultiChannelGroupByHash(List<? extends Type> hashTypes, int[] hashChannels, Optional<Integer> inputHashChannel, int expectedSize, boolean processDictionary, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators, UpdateMemory updateMemory) -
Method Summary
Modifier and TypeMethodDescriptionWork<?>voidappendValuesTo(int groupId, PageBuilder pageBuilder) booleanbooleanintlongintgetGroupIds(Page page) The order of new group ids need to be the same as the order of incoming rows, i.e.longgetRawHash(int groupId) getTypes()
-
Constructor Details
-
MultiChannelGroupByHash
public MultiChannelGroupByHash(List<? extends Type> hashTypes, int[] hashChannels, Optional<Integer> inputHashChannel, int expectedSize, boolean processDictionary, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators, UpdateMemory updateMemory)
-
-
Method Details
-
getRawHash
public long getRawHash(int groupId) - Specified by:
getRawHashin interfaceGroupByHash
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceGroupByHash
-
getTypes
- Specified by:
getTypesin interfaceGroupByHash
-
getGroupCount
public int getGroupCount()- Specified by:
getGroupCountin interfaceGroupByHash
-
appendValuesTo
- Specified by:
appendValuesToin interfaceGroupByHash
-
addPage
- Specified by:
addPagein interfaceGroupByHash
-
getGroupIds
Description copied from interface:GroupByHashThe order of new group ids need to be the same as the order of incoming rows, i.e. new group ids should be assigned in rows iteration order Example: rows: A B C B D A E group ids: 1 2 3 2 4 1 5- Specified by:
getGroupIdsin interfaceGroupByHash
-
contains
- Specified by:
containsin interfaceGroupByHash
-
contains
- Specified by:
containsin interfaceGroupByHash
-
getCapacity
public int getCapacity()- Specified by:
getCapacityin interfaceGroupByHash
-