protected static class LuceneQueryEngine.LuceneQueryProcessor extends QueryProcessor<LuceneProcessingContext>
QueryProcessor implementation used by this LuceneQueryEngine. It varies from the abstract class only by
creating a LuceneQueryEngine.LuceneAccessQuery for each access query, and which is resposible for submitting the access query to
Lucene.| Modifier | Constructor and Description |
|---|---|
protected |
LuceneQueryEngine.LuceneQueryProcessor(String repositoryName,
org.hibernate.search.SearchFactory searchFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeProcessingContext(LuceneProcessingContext processingContext)
A method that can be overridden to close the supplied processing context.
|
protected ProcessingComponent |
createAccessComponent(QueryCommand originalQuery,
QueryContext context,
PlanNode accessNode,
QueryResults.Columns resultColumns,
LuceneProcessingContext processingContext)
Create the
ProcessingComponent that processes a single PlanNode.Type.ACCESS branch of a query plan. |
protected LuceneProcessingContext |
createProcessingContext(QueryContext queryContext)
A method that can be overridden by subclasses to create a single context object used for all the access queries for a
single query.
|
protected void |
initialize(LuceneSchema schema) |
protected boolean |
supportsPushDownExistConstraints() |
createColumnsFor, createComponent, executeprotected LuceneQueryEngine.LuceneQueryProcessor(String repositoryName, org.hibernate.search.SearchFactory searchFactory)
protected void initialize(LuceneSchema schema)
protected boolean supportsPushDownExistConstraints()
supportsPushDownExistConstraints in class QueryProcessor<LuceneProcessingContext>protected LuceneProcessingContext createProcessingContext(QueryContext queryContext)
QueryProcessorcreateProcessingContext in class QueryProcessor<LuceneProcessingContext>queryContext - the context in which the query is being executed; never nullprotected void closeProcessingContext(LuceneProcessingContext processingContext)
QueryProcessorQueryProcessor.createProcessingContext(QueryContext)closeProcessingContext in class QueryProcessor<LuceneProcessingContext>processingContext - the processing context in which the query is being executed; null if
QueryProcessor.createProcessingContext(QueryContext) returned nullprotected ProcessingComponent createAccessComponent(QueryCommand originalQuery, QueryContext context, PlanNode accessNode, QueryResults.Columns resultColumns, LuceneProcessingContext processingContext)
QueryProcessorProcessingComponent that processes a single PlanNode.Type.ACCESS branch of a query plan.createAccessComponent in class QueryProcessor<LuceneProcessingContext>originalQuery - the original query that is being executed; never nullcontext - the context in which query is being evaluated; never nullaccessNode - the node in the query plan that represents the PlanNode.Type.ACCESS plan; never nullresultColumns - the columns that are to be returned; never nullprocessingContext - the processing context in which the query is being executed; null if
QueryProcessor.createProcessingContext(QueryContext) returned nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.