org.apache.lucene.search.suggest.fst
Class Sort.BufferSize

java.lang.Object
  extended by 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)

Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.



Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.