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,org.noggit.JSONWriter.Writable
public class DocumentAnalysisResponse
extends AnalysisResponseBase
implements Iterable<Map.Entry<String,DocumentAnalysisResponse.DocumentAnalysis>>
A response that is returned by processing the
DocumentAnalysisRequest. Holds a map of DocumentAnalysisResponse.DocumentAnalysis objects by a document id (unique key).- Since:
- solr 1.4
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn analysis process breakdown of a document.static classAn analysis process breakdown for a specific field.Nested classes/interfaces inherited from class org.apache.solr.client.solrj.response.AnalysisResponseBase
AnalysisResponseBase.AnalysisPhase, AnalysisResponseBase.TokenInfoNested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of document analyses in this response.getDocumentAnalysis(String documentKey) Returns the document analysis for the document associated with the given unique key (id),nullif no such association exists.iterator()Returns an iterator over the document analyses map.voidsetResponse(NamedList<Object> response) Methods inherited from class org.apache.solr.client.solrj.response.AnalysisResponseBase
buildPhases, buildTokenInfo, buildTokenInfoFromStringMethods inherited from class org.apache.solr.client.solrj.response.SolrResponseBase
getElapsedTime, getQTime, getRequestUrl, getResponse, getResponseHeader, getStatus, setElapsedTime, setRequestUrl, toString, writeMapMethods inherited from class org.apache.solr.client.solrj.SolrResponse
getExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
Constructor Details
-
DocumentAnalysisResponse
public DocumentAnalysisResponse()
-
-
Method Details
-
setResponse
- Overrides:
setResponsein classSolrResponseBase
-
getDocumentAnalysesCount
public int getDocumentAnalysesCount()Returns the number of document analyses in this response.- Returns:
- The number of document analyses in this response.
-
getDocumentAnalysis
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).
-
iterator
Returns an iterator over the document analyses map.- Specified by:
iteratorin interfaceIterable<Map.Entry<String,DocumentAnalysisResponse.DocumentAnalysis>> - Returns:
- An iterator over the document analyses map.
-