org.apache.solr.client.solrj.response
public class DocumentAnalysisResponse extends AnalysisResponseBase implements Iterable<Map.Entry<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
Constructor and Description |
---|
DocumentAnalysisResponse() |
Modifier and Type | Method and Description |
---|---|
int |
getDocumentAnalysesCount()
Returns the number of document analyses in this response.
|
DocumentAnalysisResponse.DocumentAnalysis |
getDocumentAnalysis(String documentKey)
Returns the document analysis for the document associated with the given unique key (id),
null if no such
association exists. |
Iterator<Map.Entry<String,DocumentAnalysisResponse.DocumentAnalysis>> |
iterator()
Returns an iterator over the document analyses map.
|
void |
setResponse(NamedList<Object> response) |
buildPhases, buildTokenInfo
getElapsedTime, getQTime, getRequestUrl, getResponse, getResponseHeader, getStatus, setElapsedTime, setRequestUrl, toString
deserialize, serializable
public void setResponse(NamedList<Object> response)
setResponse
in class SolrResponseBase
public int getDocumentAnalysesCount()
public DocumentAnalysisResponse.DocumentAnalysis getDocumentAnalysis(String documentKey)
null
if no such
association exists.documentKey
- The document unique key.public Iterator<Map.Entry<String,DocumentAnalysisResponse.DocumentAnalysis>> iterator()
iterator
in interface Iterable<Map.Entry<String,DocumentAnalysisResponse.DocumentAnalysis>>
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.