Package io.trino.operator
Interface GroupByHash
-
- All Known Implementing Classes:
BigintGroupByHash,MultiChannelGroupByHash,NoChannelGroupByHash
public interface GroupByHash
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Work<?>addPage(Page page)voidappendValuesTo(int groupId, PageBuilder pageBuilder, int outputChannelOffset)booleancontains(int position, Page page, int[] hashChannels)default booleancontains(int position, Page page, int[] hashChannels, long rawHash)static GroupByHashcreateGroupByHash(Session session, List<? extends Type> hashTypes, int[] hashChannels, Optional<Integer> inputHashChannel, int expectedSize, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators)static GroupByHashcreateGroupByHash(List<? extends Type> hashTypes, int[] hashChannels, Optional<Integer> inputHashChannel, int expectedSize, boolean processDictionary, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators, UpdateMemory updateMemory)intgetCapacity()longgetEstimatedSize()doublegetExpectedHashCollisions()intgetGroupCount()Work<GroupByIdBlock>getGroupIds(Page page)longgetHashCollisions()longgetRawHash(int groupyId)List<Type>getTypes()
-
-
-
Method Detail
-
createGroupByHash
static GroupByHash createGroupByHash(Session session, List<? extends Type> hashTypes, int[] hashChannels, Optional<Integer> inputHashChannel, int expectedSize, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators)
-
createGroupByHash
static GroupByHash createGroupByHash(List<? extends Type> hashTypes, int[] hashChannels, Optional<Integer> inputHashChannel, int expectedSize, boolean processDictionary, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators, UpdateMemory updateMemory)
-
getEstimatedSize
long getEstimatedSize()
-
getHashCollisions
long getHashCollisions()
-
getExpectedHashCollisions
double getExpectedHashCollisions()
-
getGroupCount
int getGroupCount()
-
appendValuesTo
void appendValuesTo(int groupId, PageBuilder pageBuilder, int outputChannelOffset)
-
getGroupIds
Work<GroupByIdBlock> getGroupIds(Page page)
-
contains
boolean contains(int position, Page page, int[] hashChannels)
-
contains
default boolean contains(int position, Page page, int[] hashChannels, long rawHash)
-
getRawHash
long getRawHash(int groupyId)
-
getCapacity
int getCapacity()
-
-