private static class CompletionFieldsConsumer.CompletionTermWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private NRTSuggesterBuilder |
builder |
private int |
docCount |
private boolean |
first |
private long |
maxWeight |
private long |
minWeight |
private PostingsEnum |
postingsEnum |
private BytesRefBuilder |
scratch |
private byte |
type |
Constructor and Description |
---|
CompletionTermWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
finish(IndexOutput output)
Stores the built FST in
output
Returns true if there was anything stored, false otherwise |
void |
write(BytesRef term,
TermsEnum termsEnum)
Writes all postings (surface form, weight, document id) for
term |
private PostingsEnum postingsEnum
private int docCount
private long maxWeight
private long minWeight
private byte type
private boolean first
private final BytesRefBuilder scratch
private final NRTSuggesterBuilder builder
public boolean finish(IndexOutput output) throws java.io.IOException
output
Returns true if there was anything stored, false otherwisejava.io.IOException