Class SolrResponseBase
java.lang.Object
org.apache.solr.client.solrj.SolrResponse
org.apache.solr.client.solrj.response.SolrResponseBase
- All Implemented Interfaces:
Serializable,MapSerializable,MapWriter,NavigableObject,org.noggit.JSONWriter.Writable
- Direct Known Subclasses:
AnalysisResponseBase,CollectionAdminResponse,ConfigSetAdminResponse,CoreAdminResponse,DelegationTokenResponse,HealthCheckResponse,LukeResponse,QueryResponse,SchemaResponse,SchemaResponse.CopyFieldsResponse,SchemaResponse.DynamicFieldResponse,SchemaResponse.DynamicFieldsResponse,SchemaResponse.FieldResponse,SchemaResponse.FieldsResponse,SchemaResponse.FieldTypeResponse,SchemaResponse.FieldTypesResponse,SchemaResponse.GlobalSimilarityResponse,SchemaResponse.SchemaNameResponse,SchemaResponse.SchemaVersionResponse,SchemaResponse.UniqueKeyResponse,SchemaResponse.UpdateResponse,SolrPingResponse,UpdateResponse,V2Response
- Since:
- solr 1.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongElapsed time in milliseconds for the request as seen from the client.intgetQTime()NamedList<?> Return aNamedListobject representing the 'responseHeader' section of Solr's responseintvoidsetElapsedTime(long elapsedTime) voidsetRequestUrl(String requestUrl) voidsetResponse(NamedList<Object> response) toString()voidWrites this object's entries out toew.Methods 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 org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
Constructor Details
-
SolrResponseBase
public SolrResponseBase()
-
-
Method Details
-
writeMap
Description copied from interface:MapWriterWrites this object's entries out toew.- Specified by:
writeMapin interfaceMapWriter- Overrides:
writeMapin classSolrResponse- Throws:
IOException
-
getElapsedTime
public long getElapsedTime()Description copied from class:SolrResponseElapsed time in milliseconds for the request as seen from the client.- Specified by:
getElapsedTimein classSolrResponse
-
setElapsedTime
public void setElapsedTime(long elapsedTime) - Specified by:
setElapsedTimein classSolrResponse
-
getResponse
- Specified by:
getResponsein classSolrResponse
-
setResponse
- Specified by:
setResponsein classSolrResponse
-
toString
-
getResponseHeader
Return aNamedListobject representing the 'responseHeader' section of Solr's responseThis method may return null, if no responseHeader can be found. If a value is returned, it should not be modified. Any modifications made are not guaranteed to be durable.
-
getStatus
public int getStatus() -
getQTime
public int getQTime() -
getRequestUrl
-
setRequestUrl
-