public class ModifiableSolrParams extends SolrParams
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
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
public ModifiableSolrParams()
public ModifiableSolrParams(Map<String,String[]> v)
public ModifiableSolrParams(SolrParams params)
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 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 String[] getParams(String param)
SolrParams
getParams
in class SolrParams
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.