public class RAMDirectoryProvider extends Object implements DirectoryProvider<org.apache.lucene.store.RAMDirectory>
Constructor and Description |
---|
RAMDirectoryProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.apache.lucene.store.RAMDirectory |
getDirectory()
Returns an initialized Lucene Directory.
|
int |
hashCode() |
void |
initialize(String directoryProviderName,
Properties properties,
BuildContext context) |
protected org.apache.lucene.store.RAMDirectory |
makeRAMDirectory()
To allow extensions to create different RAMDirectory flavours:
|
void |
start(DirectoryBasedIndexManager indexManager)
Executed after initialize, this method set up the heavy process of starting up the DirectoryProvider
IO processing as well as background processing are expected to be set up here
|
void |
stop()
Executed when the search factory is closed.
|
public void initialize(String directoryProviderName, Properties properties, BuildContext context)
initialize
in interface DirectoryProvider<org.apache.lucene.store.RAMDirectory>
context
- get the information to initialize the directory and build its hashCode/equals methodpublic void start(DirectoryBasedIndexManager indexManager)
DirectoryProvider
start
in interface DirectoryProvider<org.apache.lucene.store.RAMDirectory>
public org.apache.lucene.store.RAMDirectory getDirectory()
DirectoryProvider
getDirectory
in interface DirectoryProvider<org.apache.lucene.store.RAMDirectory>
public void stop()
DirectoryProvider
stop
in interface DirectoryProvider<org.apache.lucene.store.RAMDirectory>
protected org.apache.lucene.store.RAMDirectory makeRAMDirectory()
Copyright © 2006–2013 Hibernate. All rights reserved.