org.apache.jackrabbit.core.query.lucene
Interface LuceneQueryFactory

All Known Implementing Classes:
LuceneQueryFactoryImpl

public interface LuceneQueryFactory

LuceneQueryFactory implements a factory that creates lucene queries from given QOM elements.


Method Summary
 org.apache.lucene.search.Query create(FullTextSearchImpl constraint)
          Creates a lucene query for the given QOM full text search.
 MultiColumnQuery create(JoinImpl join)
          Creates a multi column query for the given QOM join.
 org.apache.lucene.search.Query create(PropertyExistenceImpl constraint)
          Creates a lucene query for the given QOM property existence constraint.
 org.apache.lucene.search.Query create(SelectorImpl selector)
          Creates a lucene query for the given QOM selector.
 MultiColumnQuery create(SourceImpl source)
          Creates a multi column query for the given QOM source.
 

Method Detail

create

org.apache.lucene.search.Query create(SelectorImpl selector)
                                      throws RepositoryException
Creates a lucene query for the given QOM selector.

Parameters:
selector - the selector.
Returns:
a lucene query for the given selector.
Throws:
RepositoryException - if an error occurs while creating the query.

create

org.apache.lucene.search.Query create(FullTextSearchImpl constraint)
                                      throws RepositoryException
Creates a lucene query for the given QOM full text search.

Parameters:
constraint - the full text search constraint.
Returns:
the lucene query for the given constraint.
Throws:
RepositoryException - if an error occurs while creating the query.

create

org.apache.lucene.search.Query create(PropertyExistenceImpl constraint)
                                      throws RepositoryException
Creates a lucene query for the given QOM property existence constraint.

Parameters:
constraint - the QOM constraint.
Returns:
the lucene query for the given constraint.
Throws:
RepositoryException - if an error occurs while creating the query.

create

MultiColumnQuery create(SourceImpl source)
                        throws RepositoryException
Creates a multi column query for the given QOM source.

Parameters:
source - the QOM source.
Returns:
a multi column query for the given source.
Throws:
RepositoryException - if an error occurs while creating the query.

create

MultiColumnQuery create(JoinImpl join)
                        throws RepositoryException
Creates a multi column query for the given QOM join.

Parameters:
join - the QOM join.
Returns:
the multi column query for the given join.
Throws:
RepositoryException - if an error occurs while creating the query.


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