java.lang.Object
org.apache.lucene.util.OfflineSorter.BufferSize
- Enclosing class:
- OfflineSorter
A bit more descriptive unit for constructors.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OfflineSorter.BufferSize
Approximately half of the currently available free heap, but no less thanOfflineSorter.ABSOLUTE_MIN_SORT_BUFFER_SIZE
.static OfflineSorter.BufferSize
megabytes
(long mb) Creates aOfflineSorter.BufferSize
in MB.
-
Field Details
-
bytes
final int bytes
-
-
Constructor Details
-
BufferSize
private BufferSize(long bytes)
-
-
Method Details
-
megabytes
Creates aOfflineSorter.BufferSize
in MB. The given values must be > 0 and < 2048. -
automatic
Approximately half of the currently available free heap, but no less thanOfflineSorter.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.
-