|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.common.params.SolrParams org.apache.solr.common.params.ModifiableSolrParams
public class ModifiableSolrParams
This class is similar to MultiMapSolrParams except you can edit the parameters after it is initialized. It has helper functions to set/add integer and boolean param values.
Constructor Summary | |
---|---|
ModifiableSolrParams()
|
|
ModifiableSolrParams(Map<String,String[]> v)
Constructs a new ModifiableSolrParams directly using the provided Map<String,String[]> |
|
ModifiableSolrParams(SolrParams params)
Constructs a new ModifiableSolrParams, copying values from an existing SolrParams |
Method Summary | |
---|---|
void |
add(SolrParams params)
|
ModifiableSolrParams |
add(String name,
String... val)
Add the given values to any existing name |
void |
clear()
clear all parameters |
String |
get(String param)
returns the String value of a param, or null if not set |
Set<String> |
getParameterNames()
|
Iterator<String> |
getParameterNamesIterator()
returns an Iterator over the parameter names |
String[] |
getParams(String param)
returns an array of the String values of a param, or null if none |
String[] |
remove(String name)
remove a field at the given name |
boolean |
remove(String name,
String value)
remove the given value for the given name |
ModifiableSolrParams |
set(String name,
boolean val)
|
ModifiableSolrParams |
set(String name,
int val)
|
ModifiableSolrParams |
set(String name,
String... val)
Replace any existing parameter with the given name. |
String |
toString()
|
Methods inherited from class org.apache.solr.common.params.SolrParams |
---|
fpname, get, getBool, getBool, getDouble, getDouble, getFieldBool, getFieldBool, getFieldDouble, getFieldDouble, getFieldFloat, getFieldFloat, getFieldInt, getFieldInt, getFieldParam, getFieldParam, getFieldParams, getFloat, getFloat, getInt, getInt, required, toFilteredSolrParams, toMap, toMultiMap, toNamedList, toSolrParams, wrapAppended, wrapDefaults |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModifiableSolrParams()
public ModifiableSolrParams(Map<String,String[]> v)
public ModifiableSolrParams(SolrParams params)
Method Detail |
---|
public ModifiableSolrParams set(String name, String... val)
public ModifiableSolrParams set(String name, int val)
public ModifiableSolrParams set(String name, boolean val)
public ModifiableSolrParams add(String name, String... val)
name
- Keyval
- Array of value(s) added to the name. NOTE: If val is null
or a member of val is null, then a corresponding null reference
will be included when a get method is called on the key later.
public void add(SolrParams params)
public String[] remove(String name)
public void clear()
public boolean remove(String name, String value)
public String get(String param)
SolrParams
get
in class SolrParams
public Iterator<String> getParameterNamesIterator()
SolrParams
getParameterNamesIterator
in class SolrParams
public Set<String> getParameterNames()
public String[] getParams(String param)
SolrParams
getParams
in class SolrParams
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |