org.xcmis.search.lucene
Class LuceneQueryBuilder
java.lang.Object
org.xcmis.search.lucene.LuceneQueryBuilder
- All Implemented Interfaces:
- QueryObjectModelVisitor
public class LuceneQueryBuilder
- extends Object
- implements QueryObjectModelVisitor
- Version:
- $Id: exo-jboss-codetemplates.xml 34360 2009-07-22 23:58:59Z
aheritier $
- Author:
- Sergey Kabashnyuk
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LIKE_ESCAPE_CHAR
public static final char LIKE_ESCAPE_CHAR
- See Also:
- Constant Field Values
LIKE_MATCH_ONE_CHAR
public static final char LIKE_MATCH_ONE_CHAR
- See Also:
- Constant Field Values
LIKE_MATCH_ZERO_OR_MORE_CHAR
public static final char LIKE_MATCH_ZERO_OR_MORE_CHAR
- See Also:
- Constant Field Values
LuceneQueryBuilder
public LuceneQueryBuilder(org.apache.lucene.index.IndexReader indexReader,
NameConverter<?> nameConverter,
PathSplitter<?> pathSplitter,
Map<String,Object> bindVariablesValues,
IndexConfiguration indexConfiguration)
- Parameters:
indexReader - nameConverter - pathSplitter - bindVariablesValues - indexConfiguration -
getQuery
public org.apache.lucene.search.Query getQuery()
- Returns:
- Return lucene query.
visit
public void visit(And node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.And)
visit
public void visit(BindVariableName node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.BindVariableName)
visit
public void visit(ChildNode node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.ChildNode)
visit
public void visit(ChildNodeJoinCondition node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.join.ChildNodeJoinCondition)
visit
public void visit(Column node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.column.Column)
visit
public void visit(Comparison node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.Comparison)
visit
public void visit(DescendantNode node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.DescendantNode)
visit
public void visit(DescendantNodeJoinCondition node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.join.DescendantNodeJoinCondition)
visit
public void visit(EquiJoinCondition node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.join.EquiJoinCondition)
visit
public void visit(FullTextSearch node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.FullTextSearch)
visit
public void visit(FullTextSearchScore node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.FullTextSearchScore)
visit
public void visit(Join node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.Join)
visit
public void visit(Length node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.Length)
visit
public void visit(Limit limit)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.Limit)
visit
public void visit(Literal node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.Literal)
visit
public void visit(LowerCase node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.LowerCase)
visit
public void visit(NodeDepth depth)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.NodeDepth)
visit
public void visit(NodeLocalName node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.NodeLocalName)
visit
public void visit(NodeName node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.NodeName)
visit
public void visit(Not node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.Not)
visit
public void visit(Or node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.Or)
visit
public void visit(Ordering node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.ordering.Ordering)
visit
public void visit(PropertyExistence node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.PropertyExistence)
visit
public void visit(PropertyValue node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.PropertyValue)
visit
public void visit(Query node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.Query)
visit
public void visit(SameNode node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.SameNode)
visit
public void visit(SameNodeJoinCondition node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.join.SameNodeJoinCondition)
visit
public void visit(Selector selector)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.Selector)
visit
public void visit(UpperCase node)
throws VisitException
- Specified by:
visit in interface QueryObjectModelVisitor
- Throws:
VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.UpperCase)
Copyright © 2010 eXo Platform SAS. All Rights Reserved.