Package org.apache.solr.common.params
Class MapSolrParams
- java.lang.Object
- 
- org.apache.solr.common.params.SolrParams
- 
- org.apache.solr.common.params.MapSolrParams
 
 
- 
- All Implemented Interfaces:
- Serializable,- Iterable<Map.Entry<String,String[]>>,- MapSerializable,- MapWriter,- NavigableObject,- org.noggit.JSONWriter.Writable
 
 public class MapSolrParams extends SolrParams SolrParamsimplementation that can be built from and is backed by aMap.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriterMapWriter.EntryWriter
 
- 
 - 
Constructor SummaryConstructors Constructor Description MapSolrParams(Map<String,String> map)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(String name)Returns the first String value of a param, or null if not set.Map<String,String>getMap()Iterator<String>getParameterNamesIterator()Returns an Iterator over the parameter names.String[]getParams(String name)returns an array of the String values of a param, or null if no mapping for the param exists.- 
Methods inherited from class org.apache.solr.common.params.SolrParamsfpname, get, getBool, getBool, getDouble, getDouble, getFieldBool, getFieldBool, getFieldDouble, getFieldDouble, getFieldFloat, getFieldFloat, getFieldInt, getFieldInt, getFieldParam, getFieldParam, getFieldParams, getFloat, getFloat, getInt, getInt, getLong, getLong, getPrimitiveBool, getPrimitiveFieldBool, getPrimitiveFieldFloat, getPrimitiveInt, iterator, required, stream, toLocalParamsString, toNamedList, toQueryString, toString, wrapAppended, wrapDefaults, writeMap
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 - 
Methods inherited from interface org.apache.solr.common.NavigableObject_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
 
- 
 
- 
- 
- 
Method Detail- 
getpublic String get(String name) Description copied from class:SolrParamsReturns the first String value of a param, or null if not set. To get all, callSolrParams.getParams(String)instead.- Specified by:
- getin class- SolrParams
 
 - 
getParamspublic String[] getParams(String name) Description copied from class:SolrParamsreturns an array of the String values of a param, or null if no mapping for the param exists.- Specified by:
- getParamsin class- SolrParams
 
 - 
getParameterNamesIteratorpublic Iterator<String> getParameterNamesIterator() Description copied from class:SolrParamsReturns an Iterator over the parameter names. If you were to call a getter for this parameter, you should get a non-null value. Since you probably want the value, consider using Java 5 for-each style instead for convenience since a SolrParams implementsIterable.- Specified by:
- getParameterNamesIteratorin class- SolrParams
 
 
- 
 
-