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
SolrParams implementation that can be built from and is backed by a Map.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public String get(String name)
      Description copied from class: SolrParams
      Returns the first String value of a param, or null if not set. To get all, call SolrParams.getParams(String) instead.
      Specified by:
      get in class SolrParams
    • getParams

      public String[] getParams(String name)
      Description copied from class: SolrParams
      returns an array of the String values of a param, or null if no mapping for the param exists.
      Specified by:
      getParams in class SolrParams
    • getParameterNamesIterator

      public Iterator<String> getParameterNamesIterator()
      Description copied from class: SolrParams
      Returns 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 implements Iterable.
      Specified by:
      getParameterNamesIterator in class SolrParams
    • getMap

      public Map<String,String> getMap()