/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** SolrParams hold request parameters.
*
* @version $Id$
*/
/** returns the String value of a param, or null if not set */
/** returns an array of the String values of a param, or null if none */
/** returns an Iterator over the parameter names */
/** returns the value of the param, or def if not set */
}
/** returns a RequiredSolrParams wrapping this */
{
// TODO? should we want to stash a reference?
return new RequiredSolrParams(this);
}
}
/** returns the String value of the field parameter, "f.field.param", or
* the value for "param" if that is not set.
*/
}
/** returns the String value of the field parameter, "f.field.param", or
* the value for "param" if that is not set. If that is not set, def
*/
}
/** returns the String values of the field parameter, "f.field.param", or
* the values for "param" if that is not set.
*/
}
/** Returns the Boolean value of the param, or null if not set */
}
/** Returns the boolean value of the param, or def if not set */
}
/** Returns the Boolean value of the field param,
or the value for param, or null if neither is set. */
}
/** Returns the boolean value of the field param,
or the value for param, or def if neither is set. */
}
/** Returns the Integer value of the param, or null if not set */
try {
}
}
}
/** Returns the int value of the param, or def if not set */
try {
}
}
}
/**
* @return The int value of the field param, or the value for param
* or <code>null</code> if neither is set.
**/
try {
}
}
}
/** Returns the int value of the field param,
or the value for param, or def if neither is set. */
try {
}
}
}
/** Returns the Float value of the param, or null if not set */
try {
}
}
}
/** Returns the float value of the param, or def if not set */
try {
}
}
}
/** Returns the Float value of the param, or null if not set */
try {
}
}
}
/** Returns the float value of the param, or def if not set */
try {
}
}
}
/** Returns the float value of the field param. */
try {
}
}
}
/** Returns the float value of the field param,
or the value for param, or def if neither is set. */
try {
}
}
}
/** Returns the float value of the field param. */
try {
}
}
}
/** Returns the float value of the field param,
or the value for param, or def if neither is set. */
try {
}
}
}
/** how to transform a String into a boolean... more flexible than
* Boolean.parseBoolean() to enable easier integration with html forms.
* @deprecated Use org.apache.solr.common.util.StrUtils.parseBool
*/
}
@SuppressWarnings({"deprecation"})
return defaults;
return params;
}
@SuppressWarnings({"deprecation"})
return defaults;
return params;
}
/** Create a Map<String,String> from a NamedList given no keys are repeated */
}
return map;
}
/** Create a Map<String,String[]> from a NamedList */
}
return map;
}
/** Create SolrParams from NamedList. */
// if no keys are repeated use the faster MapSolrParams
}
return new MapSolrParams(map);
}
/** Convert this to a NamedList */
} else {
// currently no reason not to use the same array
}
}
return result;
}
}