public static interface IndexDictionary.Builder
IndexDictionary
.Modifier and Type | Method and Description |
---|---|
void |
add(BytesRef blockKey,
long blockFilePointer)
Adds a [block key - block file pointer] entry to the dictionary.
|
IndexDictionary |
build()
Builds the immutable
IndexDictionary for the added entries. |
void add(BytesRef blockKey, long blockFilePointer) throws IOException
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 PositiveIntOutputs
for FST
.
blockKey
- 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.IOException
IndexDictionary build() throws IOException
IndexDictionary
for the added entries.IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.