public static final class Sort.BufferSize extends Object
automatic()
,
megabytes(int)
Modifier and Type | Method and Description |
---|---|
static Sort.BufferSize |
automatic()
Approximately half of the currently available free heap, but no less
than
Sort.MIN_BUFFER_SIZE_MB . |
static Sort.BufferSize |
megabytes(int mb) |
public static Sort.BufferSize megabytes(int mb)
public static Sort.BufferSize automatic()
Sort.MIN_BUFFER_SIZE_MB
. However if current heap allocation
is insufficient for sorting consult with max allowed heap size.