public class DirectoryTemplate
- extends Object
A simple directory template for performing operations that result in actions being performed on the
directory (like index reader/searcher/writer operation). Helps in having the same code base when working
with different implementation of Lucene
Will work with any type of
Directory, or switching between un-managed and managed
Directory implementation. Special actions will be taken if the
JdbcDirectory is used, where
be called after the callback method.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DirectoryTemplate(Directory dir)
public void execute(DirectoryTemplate.DirectoryCallback callback)
Copyright (c) 2004-2009 The Compass Project.