Package org.apache.lucene.search.suggest
Class Sort.BufferSize
java.lang.Object
org.apache.lucene.search.suggest.Sort.BufferSize
- Enclosing class:
Sort
A bit more descriptive unit for constructors.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Sort.BufferSizeApproximately half of the currently available free heap, but no less thanSort.ABSOLUTE_MIN_SORT_BUFFER_SIZE.static Sort.BufferSizemegabytes(long mb) Creates aSort.BufferSizein MB.
-
Method Details
-
megabytes
Creates aSort.BufferSizein MB. The given values must be $gt; 0 and < 2048. -
automatic
Approximately half of the currently available free heap, but no less thanSort.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.
-