public final class CompletionsTermsReader extends java.lang.Object implements Accountable
Modifier and Type | Field and Description |
---|---|
private IndexInput |
dictIn |
long |
maxWeight
Maximum entry weight for the suggester
|
long |
minWeight
Minimum entry weight for the suggester
|
private long |
offset |
private NRTSuggester |
suggester |
byte |
type
type of suggester (context-enabled or not)
|
Constructor and Description |
---|
CompletionsTermsReader(IndexInput dictIn,
long offset,
long minWeight,
long maxWeight,
byte type)
Creates a CompletionTermsReader to load a field-specific suggester
from the index
dictIn with offset |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
NRTSuggester |
suggester()
Returns the suggester for a field, if not loaded already, loads
the appropriate suggester from CompletionDictionary
|
public final long minWeight
public final long maxWeight
public final byte type
private final IndexInput dictIn
private final long offset
private NRTSuggester suggester
CompletionsTermsReader(IndexInput dictIn, long offset, long minWeight, long maxWeight, byte type) throws java.io.IOException
dictIn
with offset
java.io.IOException
public NRTSuggester suggester() throws java.io.IOException
java.io.IOException
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
public java.util.Collection<Accountable> getChildResources()
Accountable
getChildResources
in interface Accountable
Accountables