Package io.prestosql.operator
Class MultiChannelGroupByHash
- java.lang.Object
-
- io.prestosql.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)
void
appendValuesTo(int groupId, PageBuilder pageBuilder, int outputChannelOffset)
boolean
contains(int position, Page page, int[] hashChannels)
boolean
contains(int position, Page page, int[] hashChannels, long rawHash)
int
getCapacity()
long
getEstimatedSize()
double
getExpectedHashCollisions()
int
getGroupCount()
Work<GroupByIdBlock>
getGroupIds(Page page)
long
getHashCollisions()
long
getRawHash(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:
getRawHash
in interfaceGroupByHash
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSize
in interfaceGroupByHash
-
getHashCollisions
public long getHashCollisions()
- Specified by:
getHashCollisions
in interfaceGroupByHash
-
getExpectedHashCollisions
public double getExpectedHashCollisions()
- Specified by:
getExpectedHashCollisions
in interfaceGroupByHash
-
getTypes
public List<Type> getTypes()
- Specified by:
getTypes
in interfaceGroupByHash
-
getGroupCount
public int getGroupCount()
- Specified by:
getGroupCount
in interfaceGroupByHash
-
appendValuesTo
public void appendValuesTo(int groupId, PageBuilder pageBuilder, int outputChannelOffset)
- Specified by:
appendValuesTo
in interfaceGroupByHash
-
addPage
public Work<?> addPage(Page page)
- Specified by:
addPage
in interfaceGroupByHash
-
getGroupIds
public Work<GroupByIdBlock> getGroupIds(Page page)
- Specified by:
getGroupIds
in interfaceGroupByHash
-
contains
public boolean contains(int position, Page page, int[] hashChannels)
- Specified by:
contains
in interfaceGroupByHash
-
contains
public boolean contains(int position, Page page, int[] hashChannels, long rawHash)
- Specified by:
contains
in interfaceGroupByHash
-
getCapacity
public int getCapacity()
- Specified by:
getCapacity
in interfaceGroupByHash
-
-