| java.lang.Object org.apache.solr.request.SolrParams org.apache.solr.request.RequiredSolrParams
RequiredSolrParams | public class RequiredSolrParams extends SolrParams (Code) | | This is a simple wrapper to SolrParams that will throw a 400
exception if you ask for a parameter that does not exist. Fields
specified with
In short, any value you for from a RequiredSolrParams
will return a valid non-null value or throw a 400 exception.
(If you pass in null as the default value, you can
get a null return value)
author: jjl version: $Id: RequiredSolrParams.java 542679 2007-05-29 22:28:21Z ryan $ since: solr 1.2 |
Method Summary | |
public String | get(String param) | public String | get(String param, String def) | public boolean | getBool(String param, boolean def) | public boolean | getFieldBool(String field, String param, boolean def) | public float | getFieldFloat(String field, String param, float def) | public int | getFieldInt(String field, String param, int def) | public String | getFieldParam(String field, String param, String def) | public float | getFloat(String param, float def) | public int | getInt(String param, int def) | public Iterator<String> | getParameterNamesIterator() | public String[] | getParams(String param) | public String | toString() |
getBool | public boolean getBool(String param, boolean def)(Code) | | |
getFloat | public float getFloat(String param, float def)(Code) | | |
getParameterNamesIterator | public Iterator<String> getParameterNamesIterator()(Code) | | returns an Iterator over the parameter names
|
Methods inherited from org.apache.solr.request.SolrParams | protected String fpname(String field, String param)(Code)(Java Doc) abstract public String get(String param)(Code)(Java Doc) public String get(String param, String def)(Code)(Java Doc) public Boolean getBool(String param)(Code)(Java Doc) public boolean getBool(String param, boolean def)(Code)(Java Doc) public Boolean getFieldBool(String field, String param)(Code)(Java Doc) public boolean getFieldBool(String field, String param, boolean def)(Code)(Java Doc) public Float getFieldFloat(String field, String param)(Code)(Java Doc) public float getFieldFloat(String field, String param, float def)(Code)(Java Doc) public Integer getFieldInt(String field, String param)(Code)(Java Doc) public int getFieldInt(String field, String param, int def)(Code)(Java Doc) public String getFieldParam(String field, String param)(Code)(Java Doc) public String getFieldParam(String field, String param, String def)(Code)(Java Doc) public String[] getFieldParams(String field, String param)(Code)(Java Doc) public Float getFloat(String param)(Code)(Java Doc) public float getFloat(String param, float def)(Code)(Java Doc) public Integer getInt(String param)(Code)(Java Doc) public int getInt(String param, int def)(Code)(Java Doc) abstract public Iterator<String> getParameterNamesIterator()(Code)(Java Doc) abstract public String[] getParams(String param)(Code)(Java Doc) protected boolean parseBool(String s)(Code)(Java Doc) public RequiredSolrParams required()(Code)(Java Doc) public static Map<String, String> toMap(NamedList params)(Code)(Java Doc) public static Map<String, String[]> toMultiMap(NamedList params)(Code)(Java Doc) public NamedList<Object> toNamedList()(Code)(Java Doc) public static SolrParams toSolrParams(NamedList params)(Code)(Java Doc)
|
|
|