Package io.trino.operator
Class MergeHashSort
java.lang.Object
io.trino.operator.MergeHashSort
- All Implemented Interfaces:
Closeable,AutoCloseable
This class performs merge of previously hash sorted pages streams.
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 Summary
ConstructorsConstructorDescriptionMergeHashSort(AggregatedMemoryContext memoryContext, TypeOperators typeOperators) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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.
-
Constructor Details
-
MergeHashSort
-
-
Method Details
-
merge
public 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. -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-