|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.store.DirectoryProviderHelper
public class DirectoryProviderHelper
| Field Summary | |
|---|---|
static java.lang.String |
COPYBUFFERSIZE_PROP_NAME
|
| Constructor Summary | |
|---|---|
DirectoryProviderHelper()
|
|
| Method Summary | |
|---|---|
static org.apache.lucene.store.FSDirectory |
createFSIndex(java.io.File indexDir,
java.util.Properties dirConfiguration)
Creates an FSDirectory in provided directory and initializes an index if not already existing. |
static org.apache.lucene.store.LockFactory |
createLockFactory(java.io.File indexDir,
java.util.Properties dirConfiguration)
Creates a LockFactory as selected in the configuration for the DirectoryProvider. |
static long |
getCopyBufferSize(java.lang.String directoryProviderName,
java.util.Properties properties)
Users may configure the number of MB to use as "chunk size" for large file copy operations performed by DirectoryProviders. |
static java.io.File |
getSourceDirectory(java.lang.String directoryProviderName,
java.util.Properties properties,
boolean needWritePermissions)
Build a directory name out of a root and relative path, guessing the significant part and checking for the file availability |
static java.io.File |
getVerifiedIndexDir(java.lang.String annotatedIndexName,
java.util.Properties properties,
boolean verifyIsWritable)
Verify the index directory exists and is writable, or creates it if not existing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COPYBUFFERSIZE_PROP_NAME
| Constructor Detail |
|---|
public DirectoryProviderHelper()
| Method Detail |
|---|
public static java.io.File getSourceDirectory(java.lang.String directoryProviderName,
java.util.Properties properties,
boolean needWritePermissions)
directoryProviderName - properties - needWritePermissions - when true the directory will be tested for read-write permissions.
public static org.apache.lucene.store.FSDirectory createFSIndex(java.io.File indexDir,
java.util.Properties dirConfiguration)
throws java.io.IOException
indexDir - The directory where to write a new index
java.io.IOException
public static org.apache.lucene.store.LockFactory createLockFactory(java.io.File indexDir,
java.util.Properties dirConfiguration)
indexDir - the directory to use to store locks, if needed by implementationdirConfiguration - the configuration of current DirectoryProvider
java.io.IOException
public static java.io.File getVerifiedIndexDir(java.lang.String annotatedIndexName,
java.util.Properties properties,
boolean verifyIsWritable)
annotatedIndexName - The index name declared on the @Indexed annotationproperties - The properties may override the indexname.verifyIsWritable - Verify the directory is writable
SearchException
public static long getCopyBufferSize(java.lang.String directoryProviderName,
java.util.Properties properties)
directoryProviderName - properties -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||