Package io.trino.operator
Class MultiChannelGroupByHash
- java.lang.Object
-
- io.trino.operator.MultiChannelGroupByHash
-
- All Implemented Interfaces:
GroupByHash
public class MultiChannelGroupByHash extends Object implements GroupByHash
-
-
Constructor Summary
Constructors Constructor Description MultiChannelGroupByHash(List<? extends Type> hashTypes, int[] hashChannels, Optional<Integer> inputHashChannel, int expectedSize, boolean processDictionary, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators, UpdateMemory updateMemory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Work<?>addPage(Page page)voidappendValuesTo(int groupId, PageBuilder pageBuilder, int outputChannelOffset)booleancontains(int position, Page page, int[] hashChannels)booleancontains(int position, Page page, int[] hashChannels, long rawHash)intgetCapacity()longgetEstimatedSize()doublegetExpectedHashCollisions()intgetGroupCount()Work<GroupByIdBlock>getGroupIds(Page page)longgetHashCollisions()longgetRawHash(int groupId)List<Type>getTypes()
-
-
-
Constructor Detail
-
MultiChannelGroupByHash
public MultiChannelGroupByHash(List<? extends Type> hashTypes, int[] hashChannels, Optional<Integer> inputHashChannel, int expectedSize, boolean processDictionary, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators, UpdateMemory updateMemory)
-
-
Method Detail
-
getRawHash
public long getRawHash(int groupId)
- Specified by:
getRawHashin interfaceGroupByHash
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceGroupByHash
-
getHashCollisions
public long getHashCollisions()
- Specified by:
getHashCollisionsin interfaceGroupByHash
-
getExpectedHashCollisions
public double getExpectedHashCollisions()
- Specified by:
getExpectedHashCollisionsin interfaceGroupByHash
-
getTypes
public List<Type> getTypes()
- Specified by:
getTypesin interfaceGroupByHash
-
getGroupCount
public int getGroupCount()
- Specified by:
getGroupCountin interfaceGroupByHash
-
appendValuesTo
public void appendValuesTo(int groupId, PageBuilder pageBuilder, int outputChannelOffset)- Specified by:
appendValuesToin interfaceGroupByHash
-
addPage
public Work<?> addPage(Page page)
- Specified by:
addPagein interfaceGroupByHash
-
getGroupIds
public Work<GroupByIdBlock> getGroupIds(Page page)
- Specified by:
getGroupIdsin interfaceGroupByHash
-
contains
public boolean contains(int position, Page page, int[] hashChannels)- Specified by:
containsin interfaceGroupByHash
-
contains
public boolean contains(int position, Page page, int[] hashChannels, long rawHash)- Specified by:
containsin interfaceGroupByHash
-
getCapacity
public int getCapacity()
- Specified by:
getCapacityin interfaceGroupByHash
-
-