Class DefaultInMemorySorterFactory<T>
- java.lang.Object
-
- org.apache.flink.runtime.operators.sort.DefaultInMemorySorterFactory<T>
-
- All Implemented Interfaces:
InMemorySorterFactory<T>
public class DefaultInMemorySorterFactory<T> extends Object implements InMemorySorterFactory<T>
Default factory forInMemorySorter.
-
-
Constructor Summary
Constructors Constructor Description DefaultInMemorySorterFactory(org.apache.flink.api.common.typeutils.TypeSerializer<T> typeSerializer, org.apache.flink.api.common.typeutils.TypeComparator<T> typeComparator, int thresholdForInPlaceSorting)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InMemorySorter<T>create(List<org.apache.flink.core.memory.MemorySegment> sortSegments)Create anInMemorySorterinstance with the given memory segments.
-
-
-
Method Detail
-
create
public InMemorySorter<T> create(List<org.apache.flink.core.memory.MemorySegment> sortSegments)
Description copied from interface:InMemorySorterFactoryCreate anInMemorySorterinstance with the given memory segments.- Specified by:
createin interfaceInMemorySorterFactory<T>- Parameters:
sortSegments- to initialize the InMemorySorter with- Returns:
- new InMemorySorter instance
-
-