Class Sort.BufferSize

  • Enclosing class:
    Sort

    public static final class Sort.BufferSize
    extends java.lang.Object
    A bit more descriptive unit for constructors.
    See Also:
    automatic(), megabytes(long)
    • Method Detail

      • automatic

        public static Sort.BufferSize automatic()
        Approximately half of the currently available free heap, but no less than Sort.ABSOLUTE_MIN_SORT_BUFFER_SIZE. However if current heap allocation is insufficient or if there is a large portion of unallocated heap-space available for sorting consult with max allowed heap size.