public static class PrefixCodedTerms.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RAMFile |
buffer |
private Term |
lastTerm |
private BytesRefBuilder |
lastTermBytes |
private RAMOutputStream |
output |
private long |
size |
Constructor and Description |
---|
Builder()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String field,
BytesRef bytes)
add a term.
|
void |
add(Term term)
add a term
|
PrefixCodedTerms |
finish()
return finalized form
|
private RAMFile buffer
private RAMOutputStream output
private Term lastTerm
private BytesRefBuilder lastTermBytes
private long size
public void add(Term term)
public void add(java.lang.String field, BytesRef bytes)
BytesRef
.public PrefixCodedTerms finish()