com.senseidb.search.query.filters
Class FilterConstructor

java.lang.Object
  extended by com.senseidb.search.query.filters.FilterConstructor
Direct Known Subclasses:
AndFilterConstructor, BooleanFilterConstructor, FacetSelectionFilterConstructor, OrFilterConstructor, PathFilterConstructor, QueryFilterConstructor, RangeFilterConstructor, TermFilterConstructor, TermsFilterConstructor, UIDFilterConstructor

public abstract class FilterConstructor
extends Object


Field Summary
static String DEPTH_PARAM
           
static String EXCLUDES_PARAM
           
static String FROM_PARAM
           
static String GT_PARAM
           
static String GTE_PARAM
           
static String INCLUDE_LOWER_PARAM
           
static String INCLUDE_UPPER_PARAM
           
static String LT_PARAM
           
static String LTE_PARAM
           
static String MUST_NOT_PARAM
           
static String MUST_PARAM
           
static String NOOPTIMIZE_PARAM
           
static String OPERATOR_PARAM
           
static String OR_PARAM
           
static String PARAMS_PARAM
           
static String QUERY_PARAM
           
static String RANGE_DATE_FORMAT
           
static String RANGE_FIELD_TYPE
           
static String SHOULD_PARAM
           
static String STRICT_PARAM
           
static String TO_PARAM
           
static String VALUE_PARAM
           
static String VALUES_PARAM
           
 
Constructor Summary
FilterConstructor()
           
 
Method Summary
static org.apache.lucene.search.Filter constructFilter(org.json.JSONObject json, org.apache.lucene.queryParser.QueryParser qparser)
           
static Map<String,String> convertParams(org.json.JSONObject obj)
           
protected abstract  org.apache.lucene.search.Filter doConstructFilter(Object json)
           
static FilterConstructor getFilterConstructor(String type, org.apache.lucene.queryParser.QueryParser qparser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUES_PARAM

public static final String VALUES_PARAM
See Also:
Constant Field Values

VALUE_PARAM

public static final String VALUE_PARAM
See Also:
Constant Field Values

EXCLUDES_PARAM

public static final String EXCLUDES_PARAM
See Also:
Constant Field Values

OPERATOR_PARAM

public static final String OPERATOR_PARAM
See Also:
Constant Field Values

PARAMS_PARAM

public static final String PARAMS_PARAM
See Also:
Constant Field Values

MUST_PARAM

public static final String MUST_PARAM
See Also:
Constant Field Values

MUST_NOT_PARAM

public static final String MUST_NOT_PARAM
See Also:
Constant Field Values

SHOULD_PARAM

public static final String SHOULD_PARAM
See Also:
Constant Field Values

FROM_PARAM

public static final String FROM_PARAM
See Also:
Constant Field Values

TO_PARAM

public static final String TO_PARAM
See Also:
Constant Field Values

NOOPTIMIZE_PARAM

public static final String NOOPTIMIZE_PARAM
See Also:
Constant Field Values

RANGE_FIELD_TYPE

public static final String RANGE_FIELD_TYPE
See Also:
Constant Field Values

RANGE_DATE_FORMAT

public static final String RANGE_DATE_FORMAT
See Also:
Constant Field Values

QUERY_PARAM

public static final String QUERY_PARAM
See Also:
Constant Field Values

OR_PARAM

public static final String OR_PARAM
See Also:
Constant Field Values

DEPTH_PARAM

public static final String DEPTH_PARAM
See Also:
Constant Field Values

STRICT_PARAM

public static final String STRICT_PARAM
See Also:
Constant Field Values

INCLUDE_LOWER_PARAM

public static final String INCLUDE_LOWER_PARAM
See Also:
Constant Field Values

INCLUDE_UPPER_PARAM

public static final String INCLUDE_UPPER_PARAM
See Also:
Constant Field Values

GT_PARAM

public static final String GT_PARAM
See Also:
Constant Field Values

GTE_PARAM

public static final String GTE_PARAM
See Also:
Constant Field Values

LT_PARAM

public static final String LT_PARAM
See Also:
Constant Field Values

LTE_PARAM

public static final String LTE_PARAM
See Also:
Constant Field Values
Constructor Detail

FilterConstructor

public FilterConstructor()
Method Detail

getFilterConstructor

public static FilterConstructor getFilterConstructor(String type,
                                                     org.apache.lucene.queryParser.QueryParser qparser)

convertParams

public static Map<String,String> convertParams(org.json.JSONObject obj)

constructFilter

public static org.apache.lucene.search.Filter constructFilter(org.json.JSONObject json,
                                                              org.apache.lucene.queryParser.QueryParser qparser)
                                                       throws Exception
Throws:
Exception

doConstructFilter

protected abstract org.apache.lucene.search.Filter doConstructFilter(Object json)
                                                              throws Exception
Throws:
Exception


Copyright © 2010-2012. All Rights Reserved.