Class DefaultSolrParams

java.lang.Object
org.apache.solr.common.params.SolrParams
org.apache.solr.common.params.DefaultSolrParams
All Implemented Interfaces:
Serializable, Iterable<Map.Entry<String,String[]>>, MapSerializable, MapWriter, NavigableObject, org.noggit.JSONWriter.Writable
Direct Known Subclasses:
AppendedSolrParams

public class DefaultSolrParams extends SolrParams
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public String get(String param)
      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 param)
      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
    • toString

      public String toString()
      Description copied from class: SolrParams
      Like 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.

      Overrides:
      toString in class SolrParams