org.apache.solr.common.params
public abstract class SolrParams extends Object implements Serializable
Constructor and Description |
---|
SolrParams() |
Modifier and Type | Method and Description |
---|---|
protected String |
fpname(String field,
String param) |
abstract String |
get(String param)
returns the String value of a param, or null if not set
|
String |
get(String param,
String def)
returns the value of the param, or def if not set
|
Boolean |
getBool(String param)
Returns the Boolean value of the param, or null if not set
|
boolean |
getBool(String param,
boolean def)
Returns the boolean value of the param, or def if not set
|
Double |
getDouble(String param)
Returns the Float value of the param, or null if not set
|
double |
getDouble(String param,
double def)
Returns the float value of the param, or def if not set
|
Boolean |
getFieldBool(String field,
String param)
Returns the Boolean value of the field param,
or the value for param, or null if neither is set.
|
boolean |
getFieldBool(String field,
String param,
boolean def)
Returns the boolean value of the field param,
or the value for param, or def if neither is set.
|
Double |
getFieldDouble(String field,
String param)
Returns the float value of the field param.
|
double |
getFieldDouble(String field,
String param,
double def)
Returns the float value of the field param,
or the value for param, or def if neither is set.
|
Float |
getFieldFloat(String field,
String param)
Returns the float value of the field param.
|
float |
getFieldFloat(String field,
String param,
float def)
Returns the float value of the field param,
or the value for param, or def if neither is set.
|
Integer |
getFieldInt(String field,
String param) |
int |
getFieldInt(String field,
String param,
int def)
Returns the int value of the field param,
or the value for param, or def if neither is set.
|
String |
getFieldParam(String field,
String param)
returns the String value of the field parameter, "f.field.param", or
the value for "param" if that is not set.
|
String |
getFieldParam(String field,
String param,
String def)
returns the String value of the field parameter, "f.field.param", or
the value for "param" if that is not set.
|
String[] |
getFieldParams(String field,
String param)
returns the String values of the field parameter, "f.field.param", or
the values for "param" if that is not set.
|
Float |
getFloat(String param)
Returns the Float value of the param, or null if not set
|
float |
getFloat(String param,
float def)
Returns the float value of the param, or def if not set
|
Integer |
getInt(String param)
Returns the Integer value of the param, or null if not set
|
int |
getInt(String param,
int def)
Returns the int value of the param, or def if not set
|
abstract Iterator<String> |
getParameterNamesIterator()
returns an Iterator over the parameter names
|
abstract String[] |
getParams(String param)
returns an array of the String values of a param, or null if none
|
RequiredSolrParams |
required()
returns a RequiredSolrParams wrapping this
|
static Map<String,String> |
toMap(NamedList params)
Create a Map<String,String> from a NamedList given no keys are repeated
|
static Map<String,String[]> |
toMultiMap(NamedList params)
Create a Map<String,String[]> from a NamedList
|
NamedList<Object> |
toNamedList()
Convert this to a NamedList
|
static SolrParams |
toSolrParams(NamedList params)
Create SolrParams from NamedList.
|
static SolrParams |
wrapAppended(SolrParams params,
SolrParams defaults) |
static SolrParams |
wrapDefaults(SolrParams params,
SolrParams defaults) |
public abstract String get(String param)
public abstract String[] getParams(String param)
public abstract Iterator<String> getParameterNamesIterator()
public RequiredSolrParams required()
public String getFieldParam(String field, String param)
public String getFieldParam(String field, String param, String def)
public String[] getFieldParams(String field, String param)
public Boolean getBool(String param)
public boolean getBool(String param, boolean def)
public Boolean getFieldBool(String field, String param)
public boolean getFieldBool(String field, String param, boolean def)
public Integer getInt(String param)
public int getInt(String param, int def)
public Integer getFieldInt(String field, String param)
null
if neither is set.public int getFieldInt(String field, String param, int def)
public Float getFloat(String param)
public float getFloat(String param, float def)
public Double getDouble(String param)
public double getDouble(String param, double def)
public Float getFieldFloat(String field, String param)
public float getFieldFloat(String field, String param, float def)
public Double getFieldDouble(String field, String param)
public double getFieldDouble(String field, String param, double def)
public static SolrParams wrapDefaults(SolrParams params, SolrParams defaults)
public static SolrParams wrapAppended(SolrParams params, SolrParams defaults)
public static Map<String,String> toMap(NamedList params)
public static Map<String,String[]> toMultiMap(NamedList params)
public static SolrParams toSolrParams(NamedList params)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.