public class FileBasedIndex extends HashMapIndex
StringIndex that is based on a hashmap and persists
 the names as property file.indexToString, stringToIndex| Constructor and Description | 
|---|
| FileBasedIndex(FileSystemResource file)Creates a new hashmap index and loads the lookup tables from the
 filesystem resource. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | load()Loads the lookup table from the filesystem resource. | 
| protected void | save()Saves the lookup table to the filesystem resource. | 
indexToString, stringToIndexpublic FileBasedIndex(FileSystemResource file) throws FileSystemException, IOException
file - the filesystem resource that stores the lookup tables.IOException - if an I/O error occurs.FileSystemException - if an I/O error occurs.protected void load()
load in class HashMapIndexprotected void save()
save in class HashMapIndexCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.