public class MultiMapSolrParams extends SolrParams
MapWriter.EntryWriter
Constructor and Description |
---|
MultiMapSolrParams(Map<String,String[]> map) |
Modifier and Type | Method and Description |
---|---|
static void |
addParam(String name,
String[] vals,
Map<String,String[]> map) |
static void |
addParam(String name,
String val,
Map<String,String[]> map) |
static Map<String,String[]> |
asMultiMap(SolrParams params)
Returns a MultiMap view of the SolrParams as efficiently as possible.
|
static Map<String,String[]> |
asMultiMap(SolrParams params,
boolean newCopy)
Returns a MultiMap view of the SolrParams.
|
String |
get(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.
|
Iterator<Map.Entry<String,String[]>> |
iterator()
Returns an Iterator of
Map.Entry providing a multi-map view. |
fpname, get, getAll, getAll, 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, required, stream, toFilteredSolrParams, toLocalParamsString, toMap, toMultiMap, toNamedList, toQueryString, toSolrParams, toString, wrapAppended, wrapDefaults, writeMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
forEach, spliterator
public String get(String name)
SolrParams
SolrParams.getParams(String)
instead.get
in class SolrParams
public String[] getParams(String name)
SolrParams
getParams
in class SolrParams
public Iterator<String> getParameterNamesIterator()
SolrParams
Iterable
.getParameterNamesIterator
in class SolrParams
public Iterator<Map.Entry<String,String[]>> iterator()
SolrParams
Map.Entry
providing a multi-map view. Treat it as read-only.public static Map<String,String[]> asMultiMap(SolrParams params)
public static Map<String,String[]> asMultiMap(SolrParams params, boolean newCopy)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.