Class FieldAnalysisResponse
- 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.FieldAnalysisResponse
-
- All Implemented Interfaces:
Serializable
,MapSerializable
,MapWriter
,NavigableObject
public class FieldAnalysisResponse extends AnalysisResponseBase
A response that is returned by processing theFieldAnalysisRequest
. Holds a map ofFieldAnalysisResponse.Analysis
objects per field name as well as a map ofFieldAnalysisResponse.Analysis
objects per field type.- Since:
- solr 1.4
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldAnalysisResponse.Analysis
The analysis of a field.-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.response.AnalysisResponseBase
AnalysisResponseBase.AnalysisPhase, AnalysisResponseBase.TokenInfo
-
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter
-
-
Constructor Summary
Constructors Constructor Description FieldAnalysisResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<Map.Entry<String,FieldAnalysisResponse.Analysis>>
getAllFieldNameAnalysis()
Returns all field name analysese with their associated field names.Iterable<Map.Entry<String,FieldAnalysisResponse.Analysis>>
getAllFieldTypeAnalysis()
Returns all field type analyses with their associated field types.FieldAnalysisResponse.Analysis
getFieldNameAnalysis(String fieldName)
Returns the analysis for the given field name ornull
if no such analysis exists.int
getFieldNameAnalysisCount()
Returns the number of field name analyses.FieldAnalysisResponse.Analysis
getFieldTypeAnalysis(String fieldTypeName)
Returns the analysis for the given field type ornull
if no such analysis exists.int
getFieldTypeAnalysisCount()
Returns the number of field type analyses.void
setResponse(NamedList<Object> response)
-
Methods inherited from class org.apache.solr.client.solrj.response.AnalysisResponseBase
buildPhases, buildTokenInfo, buildTokenInfoFromString
-
Methods inherited from class org.apache.solr.client.solrj.response.SolrResponseBase
getElapsedTime, getQTime, getRequestUrl, getResponse, getResponseHeader, getStatus, setElapsedTime, setRequestUrl, toString, writeMap
-
Methods inherited from class org.apache.solr.client.solrj.SolrResponse
deserialize, getException, serializable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
-
-
-
Method Detail
-
setResponse
public void setResponse(NamedList<Object> response)
- Overrides:
setResponse
in classSolrResponseBase
-
getFieldTypeAnalysisCount
public int getFieldTypeAnalysisCount()
Returns the number of field type analyses.- Returns:
- The number of field type analyses.
-
getFieldTypeAnalysis
public FieldAnalysisResponse.Analysis getFieldTypeAnalysis(String fieldTypeName)
Returns the analysis for the given field type ornull
if no such analysis exists.- Parameters:
fieldTypeName
- The name of the field type.- Returns:
- The analysis for the given field type.
-
getAllFieldTypeAnalysis
public Iterable<Map.Entry<String,FieldAnalysisResponse.Analysis>> getAllFieldTypeAnalysis()
Returns all field type analyses with their associated field types.- Returns:
- All field type analyses with their associated field types.
-
getFieldNameAnalysisCount
public int getFieldNameAnalysisCount()
Returns the number of field name analyses.- Returns:
- The number of field name analyses.
-
getFieldNameAnalysis
public FieldAnalysisResponse.Analysis getFieldNameAnalysis(String fieldName)
Returns the analysis for the given field name ornull
if no such analysis exists.- Parameters:
fieldName
- The field name.- Returns:
- The analysis for the given field name.
-
getAllFieldNameAnalysis
public Iterable<Map.Entry<String,FieldAnalysisResponse.Analysis>> getAllFieldNameAnalysis()
Returns all field name analysese with their associated field names.- Returns:
- all field name analysese with their associated field names.
-
-