|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.query.lucene.LuceneProcessingContext
@ThreadSafe public class LuceneProcessingContext
Constructor Summary | |
---|---|
protected |
LuceneProcessingContext(QueryContext queryContext,
String repositoryName,
org.hibernate.search.SearchFactory searchFactory,
LuceneSchema schema)
|
Method Summary | |
---|---|
void |
close()
Close all of the readers and searchers that are associated with this processing context. |
QueryContext |
getQueryContext()
|
LuceneQueryFactory |
getQueryFactory()
|
org.apache.lucene.index.IndexReader |
getReader(String indexName)
Get an IndexReader for the Lucene index with the supplied name. |
String |
getRepositoryName()
|
org.apache.lucene.search.IndexSearcher |
getSearcher(String indexName)
Get an IndexSearcher for the Lucene index with the supplied name. |
Set<String> |
getWorkspaceNames()
Return the name of each workspace to be queried, or an empty set if all the workspaces should be queried. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LuceneProcessingContext(QueryContext queryContext, String repositoryName, org.hibernate.search.SearchFactory searchFactory, LuceneSchema schema)
Method Detail |
---|
public QueryContext getQueryContext()
public LuceneQueryFactory getQueryFactory()
public Set<String> getWorkspaceNames()
public String getRepositoryName()
public org.apache.lucene.index.IndexReader getReader(String indexName) throws LuceneException
indexName
- the name of the index; may not be null
LuceneException
- if the index manager to which the named index belongs failed to startpublic org.apache.lucene.search.IndexSearcher getSearcher(String indexName) throws LuceneException
indexName
- the name of the index; may not be null
LuceneException
- if the index manager to which the named index belongs failed to startpublic void close()
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |