public class LuceneQueryFactory extends Object
Constructor and Description |
---|
LuceneQueryFactory(Directory directory,
Analyzer analyzer,
Session session,
Map<String,Value> bindVariables)
Creates a new lucene query factory.
|
Modifier and Type | Method and Description |
---|---|
Query |
create(FullTextSearch fts)
Creates a lucene query for the given QOM full text search.
|
Query |
create(PropertyExistence prop)
Creates a lucene query for the given QOM property existence constraint.
|
Query |
create(Selector selector)
Creates a lucene query for the given QOM selector.
|
SearchResults<Row> |
execute(Map<String,PropertyValue> columns,
Selector selector,
Constraint constraint,
Ordering[] orderings,
long offset,
long maxResults) |
public LuceneQueryFactory(Directory directory, Analyzer analyzer, Session session, Map<String,Value> bindVariables) throws RepositoryException
session
- the session that executes the query.bindVariables
- the bind variable values of the queryRepositoryException
public SearchResults<Row> execute(Map<String,PropertyValue> columns, Selector selector, Constraint constraint, Ordering[] orderings, long offset, long maxResults) throws RepositoryException, IOException
RepositoryException
IOException
public Query create(Selector selector) throws RepositoryException
selector
- the selector.RepositoryException
- if an error occurs while creating the query.public Query create(FullTextSearch fts) throws RepositoryException
constraint
- the full text search constraint.RepositoryException
- if an error occurs while creating the query.public Query create(PropertyExistence prop) throws RepositoryException
constraint
- the QOM constraint.RepositoryException
- if an error occurs while creating the query."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"