IndexDatabase.java revision 208
* See LICENSE.txt included in this distribution for the specific
* file and include the License file at LICENSE.txt.
public class IndexDatabase {
private boolean interrupted;
private boolean dirty;
initialize();
initialize();
throw new FileNotFoundException("Failed to create root directory [" + indexDir.getAbsolutePath() + "]");
throw new FileNotFoundException("Failed to create root directory [" + spellDir.getAbsolutePath() + "]");
interrupted = false;
while (uidIter.term() != null && uidIter.term().field().equals("u") && uidIter.term().text().startsWith(startuid)) {
removeFile();
} catch (IOException e) {
} catch (IOException e) {
optimize();
public void optimize() {
} catch (IOException e) {
} catch (IOException e) {
public void createSpellingSuggestions() {
} catch (IOException e) {
} catch (IOException e) {
dirty = true;
if (d != null) {
dirty = true;
if (interrupted) {
String uid = Util.uid(path, DateTools.timeToString(file.lastModified(), DateTools.Resolution.MILLISECOND)); // construct uid for doc
removeFile();
public void interrupt() {
interrupted = true;
} catch (Exception e) {
} catch (Exception e) {
} catch (Exception e) {
} catch (Exception e) {
if (p != null) {
return null;
return ret;