com.senseidb.util
Class RequestConverter2

java.lang.Object
  extended by com.senseidb.util.RequestConverter2

public class RequestConverter2
extends Object


Field Summary
static String EXPLAIN
           
static String FACETINIT
           
static String FACETINIT_TYPE
           
static String FACETINIT_TYPE_BOOLEAN
           
static String FACETINIT_TYPE_BYTES
           
static String FACETINIT_TYPE_DOUBLE
           
static String FACETINIT_TYPE_INT
           
static String FACETINIT_TYPE_LONG
           
static String FACETINIT_TYPE_STRING
           
static String FACETINIT_VALUES
           
static String FACETS
           
static String FACETS_EXPAND
           
static String FACETS_MAX
           
static String FACETS_MINCOUNT
           
static String FACETS_ORDER
           
static String FACETS_ORDER_HITS
           
static String FACETS_ORDER_VAL
           
static String FETCH_STORED
           
static String FETCH_STORED_VALUE
           
static String GROUPBY
           
static String GROUPBY_COLUMN
           
static String GROUPBY_TOP
           
static String MAPPINGS
           
static String PAGING_FROM
           
static String PAGING_SIZE
           
static String PARTITIONS
           
static String ROUTEPARAM
           
static String SELECTIONS
           
static String SELECTIONS_CUSTOM
           
static String SELECTIONS_DEFAULT
           
static String SELECTIONS_PATH
           
static String SELECTIONS_PATH_DEPTH
           
static String SELECTIONS_PATH_STRICT
           
static String SELECTIONS_PATH_VALUE
           
static String SELECTIONS_RANGE
           
static String SELECTIONS_RANGE_FROM
           
static String SELECTIONS_RANGE_INCLUDE_LOWER
           
static String SELECTIONS_RANGE_INCLUDE_UPPER
           
static String SELECTIONS_RANGE_TO
           
static String SELECTIONS_TERM
           
static String SELECTIONS_TERM_VALUE
           
static String SELECTIONS_TERMS
           
static String SELECTIONS_TERMS_EXCLUDES
           
static String SELECTIONS_TERMS_OPERATOR
           
static String SELECTIONS_TERMS_OPERATOR_AND
           
static String SELECTIONS_TERMS_OPERATOR_OR
           
static String SELECTIONS_TERMS_VALUES
           
static String SORT
           
static String SORT_ASC
           
static String SORT_DESC
           
static String SORT_SCORE
           
static String TERM_VECTORS
           
 
Constructor Summary
RequestConverter2()
           
 
Method Summary
static SenseiRequest fromJSON(org.json.JSONObject json)
           
static String[] getStrings(org.json.JSONArray jsonArray)
           
static String[] getStrings(org.json.JSONObject obj, String field)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAGING_SIZE

public static final String PAGING_SIZE
See Also:
Constant Field Values

PAGING_FROM

public static final String PAGING_FROM
See Also:
Constant Field Values

GROUPBY

public static final String GROUPBY
See Also:
Constant Field Values

GROUPBY_COLUMN

public static final String GROUPBY_COLUMN
See Also:
Constant Field Values

GROUPBY_TOP

public static final String GROUPBY_TOP
See Also:
Constant Field Values

SELECTIONS

public static final String SELECTIONS
See Also:
Constant Field Values

SELECTIONS_TERM

public static final String SELECTIONS_TERM
See Also:
Constant Field Values

SELECTIONS_TERM_VALUE

public static final String SELECTIONS_TERM_VALUE
See Also:
Constant Field Values

SELECTIONS_TERMS

public static final String SELECTIONS_TERMS
See Also:
Constant Field Values

SELECTIONS_TERMS_VALUES

public static final String SELECTIONS_TERMS_VALUES
See Also:
Constant Field Values

SELECTIONS_TERMS_EXCLUDES

public static final String SELECTIONS_TERMS_EXCLUDES
See Also:
Constant Field Values

SELECTIONS_TERMS_OPERATOR

public static final String SELECTIONS_TERMS_OPERATOR
See Also:
Constant Field Values

SELECTIONS_TERMS_OPERATOR_OR

public static final String SELECTIONS_TERMS_OPERATOR_OR
See Also:
Constant Field Values

SELECTIONS_TERMS_OPERATOR_AND

public static final String SELECTIONS_TERMS_OPERATOR_AND
See Also:
Constant Field Values

SELECTIONS_RANGE

public static final String SELECTIONS_RANGE
See Also:
Constant Field Values

SELECTIONS_RANGE_FROM

public static final String SELECTIONS_RANGE_FROM
See Also:
Constant Field Values

SELECTIONS_RANGE_TO

public static final String SELECTIONS_RANGE_TO
See Also:
Constant Field Values

SELECTIONS_RANGE_INCLUDE_LOWER

public static final String SELECTIONS_RANGE_INCLUDE_LOWER
See Also:
Constant Field Values

SELECTIONS_RANGE_INCLUDE_UPPER

public static final String SELECTIONS_RANGE_INCLUDE_UPPER
See Also:
Constant Field Values

SELECTIONS_PATH

public static final String SELECTIONS_PATH
See Also:
Constant Field Values

SELECTIONS_PATH_VALUE

public static final String SELECTIONS_PATH_VALUE
See Also:
Constant Field Values

SELECTIONS_PATH_STRICT

public static final String SELECTIONS_PATH_STRICT
See Also:
Constant Field Values

SELECTIONS_PATH_DEPTH

public static final String SELECTIONS_PATH_DEPTH
See Also:
Constant Field Values

SELECTIONS_CUSTOM

public static final String SELECTIONS_CUSTOM
See Also:
Constant Field Values

SELECTIONS_DEFAULT

public static final String SELECTIONS_DEFAULT
See Also:
Constant Field Values

FACETS

public static final String FACETS
See Also:
Constant Field Values

FACETS_MAX

public static final String FACETS_MAX
See Also:
Constant Field Values

FACETS_MINCOUNT

public static final String FACETS_MINCOUNT
See Also:
Constant Field Values

FACETS_EXPAND

public static final String FACETS_EXPAND
See Also:
Constant Field Values

FACETS_ORDER

public static final String FACETS_ORDER
See Also:
Constant Field Values

FACETS_ORDER_HITS

public static final String FACETS_ORDER_HITS
See Also:
Constant Field Values

FACETS_ORDER_VAL

public static final String FACETS_ORDER_VAL
See Also:
Constant Field Values

FACETINIT

public static final String FACETINIT
See Also:
Constant Field Values

FACETINIT_TYPE

public static final String FACETINIT_TYPE
See Also:
Constant Field Values

FACETINIT_TYPE_INT

public static final String FACETINIT_TYPE_INT
See Also:
Constant Field Values

FACETINIT_TYPE_STRING

public static final String FACETINIT_TYPE_STRING
See Also:
Constant Field Values

FACETINIT_TYPE_BOOLEAN

public static final String FACETINIT_TYPE_BOOLEAN
See Also:
Constant Field Values

FACETINIT_TYPE_LONG

public static final String FACETINIT_TYPE_LONG
See Also:
Constant Field Values

FACETINIT_TYPE_BYTES

public static final String FACETINIT_TYPE_BYTES
See Also:
Constant Field Values

FACETINIT_TYPE_DOUBLE

public static final String FACETINIT_TYPE_DOUBLE
See Also:
Constant Field Values

FACETINIT_VALUES

public static final String FACETINIT_VALUES
See Also:
Constant Field Values

SORT

public static final String SORT
See Also:
Constant Field Values

SORT_ASC

public static final String SORT_ASC
See Also:
Constant Field Values

SORT_DESC

public static final String SORT_DESC
See Also:
Constant Field Values

SORT_SCORE

public static final String SORT_SCORE
See Also:
Constant Field Values

FETCH_STORED

public static final String FETCH_STORED
See Also:
Constant Field Values

FETCH_STORED_VALUE

public static final String FETCH_STORED_VALUE
See Also:
Constant Field Values

TERM_VECTORS

public static final String TERM_VECTORS
See Also:
Constant Field Values

PARTITIONS

public static final String PARTITIONS
See Also:
Constant Field Values

EXPLAIN

public static final String EXPLAIN
See Also:
Constant Field Values

ROUTEPARAM

public static final String ROUTEPARAM
See Also:
Constant Field Values

MAPPINGS

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

RequestConverter2

public RequestConverter2()
Method Detail

getStrings

public static String[] getStrings(org.json.JSONObject obj,
                                  String field)

getStrings

public static String[] getStrings(org.json.JSONArray jsonArray)
                           throws Exception
Throws:
Exception

fromJSON

public static SenseiRequest fromJSON(org.json.JSONObject json)
                              throws Exception
Throws:
Exception


Copyright © 2010-2012. All Rights Reserved.