public class DefaultSolrParams extends SolrParams
MapWriter.EntryWriter
Modifier and Type | Field and Description |
---|---|
protected SolrParams |
defaults |
protected SolrParams |
params |
Modifier | Constructor and Description |
---|---|
protected |
DefaultSolrParams(SolrParams params,
SolrParams defaults) |
Modifier and Type | Method and Description |
---|---|
String |
get(String param)
Returns the first String value of a param, or null if not set.
|
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 no mapping for the param exists.
|
String |
toString()
Like
SolrParams.toQueryString() , but only replacing enough chars so that
the URL may be unambiguously pasted back into a browser. |
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, iterator, required, stream, toFilteredSolrParams, toLocalParamsString, toMap, toMultiMap, toNamedList, toQueryString, toSolrParams, wrapAppended, wrapDefaults, writeMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
forEach, spliterator
protected final SolrParams params
protected final SolrParams defaults
protected DefaultSolrParams(SolrParams params, SolrParams defaults)
public String get(String param)
SolrParams
SolrParams.getParams(String)
instead.get
in class SolrParams
public String[] getParams(String param)
SolrParams
getParams
in class SolrParams
public Iterator<String> getParameterNamesIterator()
SolrParams
Iterable
.getParameterNamesIterator
in class SolrParams
public String toString()
SolrParams
SolrParams.toQueryString()
, but only replacing enough chars so that
the URL may be unambiguously pasted back into a browser.
This method can be used to properly log query parameters without
making them unreadable.
Characters with a numeric value less than 32 are encoded. &,=,%,+,space are encoded.
toString
in class SolrParams
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.