Package org.apache.solr.common.params
Class MultiMapSolrParams
java.lang.Object
org.apache.solr.common.params.SolrParams
org.apache.solr.common.params.MultiMapSolrParams
- All Implemented Interfaces:
Serializable,Iterable<Map.Entry<String,,String[]>> MapSerializable,MapWriter,NavigableObject,org.noggit.JSONWriter.Writable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidasMultiMap(SolrParams params) Returns a MultiMap view of the SolrParams as efficiently as possible.asMultiMap(SolrParams params, boolean newCopy) Returns a MultiMap view of the SolrParams.Returns the first String value of a param, or null if not set.getMap()Returns an Iterator over the parameter names.String[]returns an array of the String values of a param, or null if no mapping for the param exists.iterator()Returns an Iterator ofMap.Entryproviding a multi-map view.Methods inherited from class org.apache.solr.common.params.SolrParams
equals, fpname, 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, hashCode, of, of, required, stream, toLocalParamsString, toNamedList, toQueryString, toString, wrapAppended, wrapDefaults, writeMapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
Field Details
-
map
-
-
Constructor Details
-
MultiMapSolrParams
-
-
Method Details
-
addParam
-
addParam
-
get
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 classSolrParams
-
getParams
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 classSolrParams
-
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 classSolrParams
-
iterator
Description copied from class:SolrParamsReturns an Iterator ofMap.Entryproviding a multi-map view. Treat it as read-only. -
getMap
-
asMultiMap
Returns a MultiMap view of the SolrParams as efficiently as possible. The returned map may or may not be a backing implementation. -
asMultiMap
Returns a MultiMap view of the SolrParams. A new map will be created if newCopy==true
-