org.xcmis.search.lucene
Class LuceneQueryBuilder
java.lang.Object
org.xcmis.search.lucene.LuceneQueryBuilder
- All Implemented Interfaces:
- org.xcmis.search.QueryObjectModelVisitor
public class LuceneQueryBuilder
- extends Object
- implements org.xcmis.search.QueryObjectModelVisitor
- Version:
- $Id: exo-jboss-codetemplates.xml 34360 2009-07-22 23:58:59Z
aheritier $
- Author:
- Sergey Kabashnyuk
|
Method Summary |
org.apache.lucene.search.Query |
getQuery()
|
void |
visit(org.xcmis.search.model.constraint.And node)
|
void |
visit(org.xcmis.search.model.operand.BindVariableName node)
|
void |
visit(org.xcmis.search.model.constraint.ChildNode node)
|
void |
visit(org.xcmis.search.model.source.join.ChildNodeJoinCondition node)
|
void |
visit(org.xcmis.search.model.column.Column node)
|
void |
visit(org.xcmis.search.model.constraint.Comparison node)
|
void |
visit(org.xcmis.search.model.constraint.DescendantNode node)
|
void |
visit(org.xcmis.search.model.source.join.DescendantNodeJoinCondition node)
|
void |
visit(org.xcmis.search.model.source.join.EquiJoinCondition node)
|
void |
visit(org.xcmis.search.model.constraint.FullTextSearch node)
|
void |
visit(org.xcmis.search.model.operand.FullTextSearchScore node)
|
void |
visit(org.xcmis.search.model.source.Join node)
|
void |
visit(org.xcmis.search.model.operand.Length node)
|
void |
visit(org.xcmis.search.model.Limit limit)
|
void |
visit(org.xcmis.search.model.operand.Literal node)
|
void |
visit(org.xcmis.search.model.operand.LowerCase node)
|
void |
visit(org.xcmis.search.model.operand.NodeDepth depth)
|
void |
visit(org.xcmis.search.model.operand.NodeLocalName node)
|
void |
visit(org.xcmis.search.model.operand.NodeName node)
|
void |
visit(org.xcmis.search.model.constraint.Not node)
|
void |
visit(org.xcmis.search.model.constraint.Or node)
|
void |
visit(org.xcmis.search.model.ordering.Ordering node)
|
void |
visit(org.xcmis.search.model.constraint.PropertyExistence node)
|
void |
visit(org.xcmis.search.model.operand.PropertyValue node)
|
void |
visit(org.xcmis.search.model.Query node)
|
void |
visit(org.xcmis.search.model.constraint.SameNode node)
|
void |
visit(org.xcmis.search.model.source.join.SameNodeJoinCondition node)
|
void |
visit(org.xcmis.search.model.source.Selector selector)
|
void |
visit(org.xcmis.search.model.operand.UpperCase node)
|
| 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(org.xcmis.search.model.constraint.And node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.And)
visit
public void visit(org.xcmis.search.model.operand.BindVariableName node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.BindVariableName)
visit
public void visit(org.xcmis.search.model.constraint.ChildNode node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.ChildNode)
visit
public void visit(org.xcmis.search.model.source.join.ChildNodeJoinCondition node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.join.ChildNodeJoinCondition)
visit
public void visit(org.xcmis.search.model.column.Column node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.column.Column)
visit
public void visit(org.xcmis.search.model.constraint.Comparison node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.Comparison)
visit
public void visit(org.xcmis.search.model.constraint.DescendantNode node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.DescendantNode)
visit
public void visit(org.xcmis.search.model.source.join.DescendantNodeJoinCondition node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.join.DescendantNodeJoinCondition)
visit
public void visit(org.xcmis.search.model.source.join.EquiJoinCondition node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.join.EquiJoinCondition)
visit
public void visit(org.xcmis.search.model.constraint.FullTextSearch node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.FullTextSearch)
visit
public void visit(org.xcmis.search.model.operand.FullTextSearchScore node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.FullTextSearchScore)
visit
public void visit(org.xcmis.search.model.source.Join node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.Join)
visit
public void visit(org.xcmis.search.model.operand.Length node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.Length)
visit
public void visit(org.xcmis.search.model.Limit limit)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.Limit)
visit
public void visit(org.xcmis.search.model.operand.Literal node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.Literal)
visit
public void visit(org.xcmis.search.model.operand.LowerCase node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.LowerCase)
visit
public void visit(org.xcmis.search.model.operand.NodeDepth depth)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.NodeDepth)
visit
public void visit(org.xcmis.search.model.operand.NodeLocalName node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.NodeLocalName)
visit
public void visit(org.xcmis.search.model.operand.NodeName node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.NodeName)
visit
public void visit(org.xcmis.search.model.constraint.Not node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.Not)
visit
public void visit(org.xcmis.search.model.constraint.Or node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.Or)
visit
public void visit(org.xcmis.search.model.ordering.Ordering node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.ordering.Ordering)
visit
public void visit(org.xcmis.search.model.constraint.PropertyExistence node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.PropertyExistence)
visit
public void visit(org.xcmis.search.model.operand.PropertyValue node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.PropertyValue)
visit
public void visit(org.xcmis.search.model.Query node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.Query)
visit
public void visit(org.xcmis.search.model.constraint.SameNode node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.constraint.SameNode)
visit
public void visit(org.xcmis.search.model.source.join.SameNodeJoinCondition node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.join.SameNodeJoinCondition)
visit
public void visit(org.xcmis.search.model.source.Selector selector)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.Selector)
visit
public void visit(org.xcmis.search.model.operand.UpperCase node)
throws org.xcmis.search.VisitException
- Specified by:
visit in interface org.xcmis.search.QueryObjectModelVisitor
- Throws:
org.xcmis.search.VisitException- See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.operand.UpperCase)
Copyright © 2011 eXo Platform SAS. All Rights Reserved.