public class DocumentAnalysisResponse extends AnalysisResponseBase implements java.lang.Iterable<java.util.Map.Entry<java.lang.String,DocumentAnalysisResponse.DocumentAnalysis>>
DocumentAnalysisRequest
.
Holds a map of DocumentAnalysisResponse.DocumentAnalysis
objects by a document id (unique key).Modifier and Type | Class and Description |
---|---|
static class |
DocumentAnalysisResponse.DocumentAnalysis
An analysis process breakdown of a document.
|
static class |
DocumentAnalysisResponse.FieldAnalysis
An analysis process breakdown for a specific field.
|
AnalysisResponseBase.AnalysisPhase, AnalysisResponseBase.TokenInfo
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,DocumentAnalysisResponse.DocumentAnalysis> |
documentAnalysisByKey |
Constructor and Description |
---|
DocumentAnalysisResponse() |
Modifier and Type | Method and Description |
---|---|
int |
getDocumentAnalysesCount()
Returns the number of document analyses in this response.
|
DocumentAnalysisResponse.DocumentAnalysis |
getDocumentAnalysis(java.lang.String documentKey)
Returns the document analysis for the document associated with the given unique key (id),
null if no such
association exists. |
java.util.Iterator<java.util.Map.Entry<java.lang.String,DocumentAnalysisResponse.DocumentAnalysis>> |
iterator()
Returns an iterator over the document analyses map.
|
void |
setResponse(NamedList<java.lang.Object> response) |
buildPhases, buildTokenInfo
getElapsedTime, getQTime, getRequestUrl, getResponse, getResponseHeader, getStatus, setElapsedTime, setRequestUrl, toString
private final java.util.Map<java.lang.String,DocumentAnalysisResponse.DocumentAnalysis> documentAnalysisByKey
public void setResponse(NamedList<java.lang.Object> response)
setResponse
in class SolrResponseBase
public int getDocumentAnalysesCount()
public DocumentAnalysisResponse.DocumentAnalysis getDocumentAnalysis(java.lang.String documentKey)
null
if no such
association exists.documentKey
- The document unique key.public java.util.Iterator<java.util.Map.Entry<java.lang.String,DocumentAnalysisResponse.DocumentAnalysis>> iterator()
iterator
in interface java.lang.Iterable<java.util.Map.Entry<java.lang.String,DocumentAnalysisResponse.DocumentAnalysis>>