Class CompletionsTermsReader
- java.lang.Object
-
- org.apache.lucene.search.suggest.document.CompletionsTermsReader
-
- All Implemented Interfaces:
Accountable
public final class CompletionsTermsReader extends Object implements Accountable
Holder for suggester and field-level info for a suggest field
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Accountable>getChildResources()Returns nested resources of this class.longramBytesUsed()Return the memory usage of this object in bytes.NRTSuggestersuggester()Returns the suggester for a field, if not loaded already, loads the appropriate suggester from CompletionDictionary
-
-
-
Method Detail
-
suggester
public NRTSuggester suggester() throws IOException
Returns the suggester for a field, if not loaded already, loads the appropriate suggester from CompletionDictionary- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-
getChildResources
public Collection<Accountable> getChildResources()
Description copied from interface:AccountableReturns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).- Specified by:
getChildResourcesin interfaceAccountable- See Also:
Accountables
-
-