Apache CXF API

org.apache.cxf.jaxrs.ext.search.lucene
Class LuceneQueryVisitor<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.search.visitor.AbstractSearchConditionVisitor<T,org.apache.lucene.search.Query>
      extended by org.apache.cxf.jaxrs.ext.search.lucene.LuceneQueryVisitor<T>
All Implemented Interfaces:
SearchConditionVisitor<T,org.apache.lucene.search.Query>

public class LuceneQueryVisitor<T>
extends AbstractSearchConditionVisitor<T,org.apache.lucene.search.Query>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cxf.jaxrs.ext.search.visitor.AbstractSearchConditionVisitor
AbstractSearchConditionVisitor.ClassValue
 
Constructor Summary
LuceneQueryVisitor()
           
LuceneQueryVisitor(Map<String,String> fieldsMap)
           
LuceneQueryVisitor(Map<String,String> fieldsMap, String contentsFieldName)
           
LuceneQueryVisitor(String contentsFieldName)
           
LuceneQueryVisitor(String contentsFieldAlias, String contentsFieldName)
           
 
Method Summary
 org.apache.lucene.search.Query getQuery()
          Return a built query object
protected  org.apache.lucene.search.Query parseExpression(String fieldName, String expression)
           
 void setContentsFieldMap(Map<String,String> map)
           
 void visit(SearchCondition<T> sc)
           
 
Methods inherited from class org.apache.cxf.jaxrs.ext.search.visitor.AbstractSearchConditionVisitor
getPrimitiveFieldClass, getPrimitiveFieldClass, getPrimitiveFieldClass, getRealPropertyName, isWildcardStringMatch, setPrimitiveFieldTypeMap, setValidator, setWildcardStringMatch, validatePropertyValue, visitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneQueryVisitor

public LuceneQueryVisitor()

LuceneQueryVisitor

public LuceneQueryVisitor(String contentsFieldAlias,
                          String contentsFieldName)

LuceneQueryVisitor

public LuceneQueryVisitor(String contentsFieldName)

LuceneQueryVisitor

public LuceneQueryVisitor(Map<String,String> fieldsMap)

LuceneQueryVisitor

public LuceneQueryVisitor(Map<String,String> fieldsMap,
                          String contentsFieldName)
Method Detail

setContentsFieldMap

public void setContentsFieldMap(Map<String,String> map)

visit

public void visit(SearchCondition<T> sc)

getQuery

public org.apache.lucene.search.Query getQuery()
Description copied from interface: SearchConditionVisitor
Return a built query object

Returns:
the query

parseExpression

protected org.apache.lucene.search.Query parseExpression(String fieldName,
                                                         String expression)

Apache CXF API

Apache CXF