public class IndexedFileWordMapWithCache extends IndexedFileWordMap
| Constructor and Description |
|---|
IndexedFileWordMapWithCache()
Creates a new instance of IndexedFileWordMap with default 2000 words and 3000 positions.
|
IndexedFileWordMapWithCache(boolean onlyFiles)
Creates a new instance of IndexedFileWordMap with default 2000 words and 3000 positions.
|
IndexedFileWordMapWithCache(int maxPositions,
int maxWords,
boolean onlyFiles) |
| Modifier and Type | Method and Description |
|---|---|
HEntry |
get(String word) |
protected HEntry |
getEntryFromPosition(long position) |
protected String |
getWord(int index) |
add, addCustomWord, beginAddEntries, endAddEntries, getEntry, getEntryPosition, getWordIndex, init, iterator, needEntriespublic IndexedFileWordMapWithCache()
public IndexedFileWordMapWithCache(boolean onlyFiles)
public IndexedFileWordMapWithCache(int maxPositions,
int maxWords,
boolean onlyFiles)
maxPositions - max number of positions to Entries in cache. Width 0, there is no cache of positions.maxWords - max number of words to position in cache. Width 0, there is no cache of words.public HEntry get(String word)
get in class IndexedFileWordMapprotected String getWord(int index)
getWord in class IndexedFileWordMapprotected HEntry getEntryFromPosition(long position)
getEntryFromPosition in class IndexedFileWordMapCopyright © 2020. All rights reserved.