public class MergeHashSort extends Object implements Closeable
Positions are compared using their hash value. It is possible that two distinct values to have same hash value, thus returned stream of Pages can have interleaved positions with same hash value.
| Constructor and Description |
|---|
MergeHashSort(AggregatedMemoryContext memoryContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
WorkProcessor<Page> |
merge(List<Type> keyTypes,
List<Type> allTypes,
List<WorkProcessor<Page>> channels,
DriverYieldSignal driverYieldSignal)
Rows with same hash value are guaranteed to be in the same result page.
|
public MergeHashSort(AggregatedMemoryContext memoryContext)
public WorkProcessor<Page> merge(List<Type> keyTypes, List<Type> allTypes, List<WorkProcessor<Page>> channels, DriverYieldSignal driverYieldSignal)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2012–2019. All rights reserved.