Package org.apache.solr.common
Class SolrDocumentList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<SolrDocument>,Collection<SolrDocument>,List<SolrDocument>,RandomAccess,MapSerializable,MapWriter,NavigableObject,org.noggit.JSONWriter.Writable
Represent a list of SolrDocuments returned from a search. This includes position and offset
information.
- Since:
- solr 1.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonggetStart()voidsetMaxScore(Float maxScore) voidsetNumFound(long numFound) voidsetNumFoundExact(Boolean numFoundExact) voidsetStart(long start) toString()voidWrites this object's entries out toew.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAllMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
Constructor Details
-
SolrDocumentList
public SolrDocumentList()
-
-
Method Details
-
writeMap
Description copied from interface:MapWriterWrites this object's entries out toew.- Specified by:
writeMapin interfaceMapWriter- Throws:
IOException
-
getNumFoundExact
-
setNumFoundExact
-
getMaxScore
-
setMaxScore
-
getNumFound
public long getNumFound() -
setNumFound
public void setNumFound(long numFound) -
getStart
public long getStart() -
setStart
public void setStart(long start) -
toString
- Overrides:
toStringin classAbstractCollection<SolrDocument>
-