Was this helpful?
Sort Settings
 
Name
Type
Default Value
Description
sort.ioBuffer
String
0
The buffer size (in bytes) used for all I/O operations initiated by the Sort operator. The given value can be specified using a numeric value and k, m, or g for kilobytes, megabytes, and gigabytes, respectively. The default size is zero, indicating that the framework should determine the buffer size at run time based on current resource availability.
sort.maxMerge
int
0
The maximum number of intermediate sort segments to merge concurrently. Tune this setting to control the resources required to merge sorted segments to create the final sorted result.
sort.sortBuffer
String
0
The size of the buffer used to sort data in memory. Data is read into this buffer, sorted, and then cached to disk as needed for later merging. A larger buffer usually provides better performance, as more data can be sorted in memory and fewer sorted segments need to be merged to create the final sorted result.
The following code example shows how to create a base engine configuration and set specific sort settings.
Setting sort configuration
EngineConfig config = EngineConfig.engine().sort.maxMerge(40).sort.ioBuffer("1m").sort.sortBuffer("20m");
Last modified date: 06/14/2024