protected class FSTDictionary.Browser extends Object implements IndexDictionary.Browser
FSTDictionary.Browser
to seek a term in this FSTDictionary
and get its corresponding block file pointer in the block file.Modifier and Type | Field and Description |
---|---|
protected BytesRefFSTEnum<Long> |
fstEnum |
Modifier | Constructor and Description |
---|---|
protected |
Browser() |
Modifier and Type | Method and Description |
---|---|
long |
seekBlock(BytesRef term)
Seeks the given term in the
IndexDictionary and returns its corresponding
block file pointer. |
protected final BytesRefFSTEnum<Long> fstEnum
public long seekBlock(BytesRef term) throws IOException
IndexDictionary.Browser
IndexDictionary
and returns its corresponding
block file pointer.seekBlock
in interface IndexDictionary.Browser
-1
if there is no floor block key because the searched
term precedes alphabetically the first block key of the dictionary.IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.