Class LuceneConfigurations.FileSystemDirectoryFromNameFactory

  extended by
All Implemented Interfaces:
Enclosing class:

public static class LuceneConfigurations.FileSystemDirectoryFromNameFactory
extends Object

A LuceneConfiguration implementation that creates FSDirectory instances for each workspace and index name. This factory is created with a parent directory under which all workspace and index directories are created.

This uses the supplied encoders to translate the workspace and index names into valid directory names. By default, no encoding is performed, meaning that the workspace and index names are used explicitly as directory names. This default behavior, then, means that not all values of workspace names or index names will work. If you want to be sure that all workspace names work, supply an encoder for the workspace names. (Index names are currently such that they will always be valid directory names, but you can always supply an encoder if you'd like.)

Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.