public static class FSTDictionary.Builder extends java.lang.Object implements IndexDictionary.Builder
FSTDictionary.| Modifier and Type | Field and Description |
|---|---|
protected <any> |
fstBuilder |
protected IntsRefBuilder |
scratchInts |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(BytesRef blockKey,
long blockFilePointer)
Adds a [block key - block file pointer] entry to the dictionary.
|
FSTDictionary |
build() |
protected final <any> fstBuilder
protected final IntsRefBuilder scratchInts
public void add(BytesRef blockKey,
long blockFilePointer)
IndexDictionary.Builder
The Uniform Split technique adds block keys in the dictionary. See
BlockReader and TermBytes for more info about block
key and minimal distinguishing prefix (MDP).
All block keys are added in strictly increasing order of the block file pointers,
this allows long encoding optimizations such as with org.apache.lucene.util.fst.PositiveIntOutputs
for org.apache.lucene.util.fst.FST.
add in interface IndexDictionary.BuilderblockKey - The block key which is the minimal distinguishing
prefix (MDP) of the first term of a block.blockFilePointer - Non-negative file pointer to the start of the
block in the block file.public FSTDictionary build()
build in interface IndexDictionary.BuilderData In Motion GmbH all rights reserved