Class DocumentAnalysisResponse
- java.lang.Object
- 
- org.apache.solr.client.solrj.SolrResponse
- 
- org.apache.solr.client.solrj.response.SolrResponseBase
- 
- org.apache.solr.client.solrj.response.AnalysisResponseBase
- 
- org.apache.solr.client.solrj.response.DocumentAnalysisResponse
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Iterable<Map.Entry<String,DocumentAnalysisResponse.DocumentAnalysis>>,- MapSerializable,- MapWriter,- NavigableObject
 
 public class DocumentAnalysisResponse extends AnalysisResponseBase implements Iterable<Map.Entry<String,DocumentAnalysisResponse.DocumentAnalysis>> A response that is returned by processing theDocumentAnalysisRequest. Holds a map ofDocumentAnalysisResponse.DocumentAnalysisobjects by a document id (unique key).- Since:
- solr 1.4
- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDocumentAnalysisResponse.DocumentAnalysisAn analysis process breakdown of a document.static classDocumentAnalysisResponse.FieldAnalysisAn analysis process breakdown for a specific field.- 
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.response.AnalysisResponseBaseAnalysisResponseBase.AnalysisPhase, AnalysisResponseBase.TokenInfo
 - 
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriterMapWriter.EntryWriter
 
- 
 - 
Constructor SummaryConstructors Constructor Description DocumentAnalysisResponse()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDocumentAnalysesCount()Returns the number of document analyses in this response.DocumentAnalysisResponse.DocumentAnalysisgetDocumentAnalysis(String documentKey)Returns the document analysis for the document associated with the given unique key (id),nullif no such association exists.Iterator<Map.Entry<String,DocumentAnalysisResponse.DocumentAnalysis>>iterator()Returns an iterator over the document analyses map.voidsetResponse(NamedList<Object> response)- 
Methods inherited from class org.apache.solr.client.solrj.response.AnalysisResponseBasebuildPhases, buildTokenInfo, buildTokenInfoFromString
 - 
Methods inherited from class org.apache.solr.client.solrj.response.SolrResponseBasegetElapsedTime, getQTime, getRequestUrl, getResponse, getResponseHeader, getStatus, setElapsedTime, setRequestUrl, toString, writeMap
 - 
Methods inherited from class org.apache.solr.client.solrj.SolrResponsegetException
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 - 
Methods inherited from interface org.apache.solr.common.NavigableObject_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
 
- 
 
- 
- 
- 
Method Detail- 
setResponsepublic void setResponse(NamedList<Object> response) - Overrides:
- setResponsein class- SolrResponseBase
 
 - 
getDocumentAnalysesCountpublic int getDocumentAnalysesCount() Returns the number of document analyses in this response.- Returns:
- The number of document analyses in this response.
 
 - 
getDocumentAnalysispublic DocumentAnalysisResponse.DocumentAnalysis getDocumentAnalysis(String documentKey) Returns the document analysis for the document associated with the given unique key (id),nullif no such association exists.- Parameters:
- documentKey- The document unique key.
- Returns:
- The document analysis for the document associated with the given unique key (id).
 
 - 
iteratorpublic Iterator<Map.Entry<String,DocumentAnalysisResponse.DocumentAnalysis>> iterator() Returns an iterator over the document analyses map.- Specified by:
- iteratorin interface- Iterable<Map.Entry<String,DocumentAnalysisResponse.DocumentAnalysis>>
- Returns:
- An iterator over the document analyses map.
 
 
- 
 
-