Package org.apache.solr.common
Class SolrInputField
- java.lang.Object
- 
- org.apache.solr.common.SolrInputField
 
- 
- All Implemented Interfaces:
- Serializable,- Iterable<Object>
 
 public class SolrInputField extends Object implements Iterable<Object>, Serializable - Since:
- solr 1.3
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description SolrInputField(String n)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(Object v)Add values to a field.SolrInputFielddeepCopy()ObjectgetFirstValue()StringgetName()ObjectgetValue()intgetValueCount()Collection<Object>getValues()Iterator<Object>iterator()voidsetName(String name)voidsetValue(Object v)Set the value for a field.StringtoString()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Constructor Detail- 
SolrInputFieldpublic SolrInputField(String n) 
 
- 
 - 
Method Detail- 
setValuepublic void setValue(Object v) Set the value for a field. Arrays will be converted to a collection. If a collection is given, then that collection will be used as the backing collection for the values.
 - 
addValuepublic void addValue(Object v) Add values to a field. If the added value is a collection, each value will be added individually.
 - 
getFirstValuepublic Object getFirstValue() 
 - 
getValuepublic Object getValue() - Returns:
- the value for this field. If the field has multiple values, this will be a collection.
 
 - 
getValuespublic Collection<Object> getValues() - Returns:
- the values for this field. This will return a collection even if the field is not multi-valued
 
 - 
getValueCountpublic int getValueCount() - Returns:
- the number of values for this field
 
 - 
getNamepublic String getName() 
 - 
setNamepublic void setName(String name) 
 - 
deepCopypublic SolrInputField deepCopy() 
 
- 
 
-