org.apache.jackrabbit.core.query.lucene.constraint
Interface EvaluationContext

All Known Implementing Classes:
JackrabbitIndexSearcher

public interface EvaluationContext

EvaluationContext defines a context with various resources that are needed for constraint evaluation.


Method Summary
 QueryHits evaluate(org.apache.lucene.search.Query query)
          Evaluates the given lucene query and returns the query hits.
 org.apache.lucene.index.IndexReader getIndexReader()
           
 ItemStateManager getItemStateManager()
           
 SessionImpl getSession()
           
 

Method Detail

evaluate

QueryHits evaluate(org.apache.lucene.search.Query query)
                   throws IOException
Evaluates the given lucene query and returns the query hits.

Parameters:
query - the lucene query to evaluate.
Returns:
the query hits for the given query.
Throws:
IOException - if an error occurs while reading from the index.

getIndexReader

org.apache.lucene.index.IndexReader getIndexReader()
Returns:
the index reader.

getSession

SessionImpl getSession()
Returns:
the session that executes the query.

getItemStateManager

ItemStateManager getItemStateManager()
Returns:
the shared item state manager of the current workspace.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.