org.apache.lucene.search.suggest.fst
Class Sort.BufferSize
java.lang.Object
org.apache.lucene.search.suggest.fst.Sort.BufferSize
- Enclosing class:
- Sort
public static final class Sort.BufferSize
- extends Object
A bit more descriptive unit for constructors.
- See Also:
automatic()
,
megabytes(int)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
megabytes
public static Sort.BufferSize megabytes(int mb)
automatic
public static Sort.BufferSize automatic()
- Approximately half of the currently available free heap, but no less
than
Sort.MIN_BUFFER_SIZE_MB
. However if current heap allocation
is insufficient for sorting consult with max allowed heap size.