public class ProtobufResponseSetter extends Object implements ResponseSetter<SolrProtocol.SolrResponse>
| 构造器和说明 |
|---|
ProtobufResponseSetter(long rid) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addError(int code,
String message) |
void |
addError(int code,
Throwable ex) |
void |
addError(Throwable ex) |
SolrProtocol.SolrResponse |
buildProtocolResponse() |
OutputStream |
getResponseOutputStream() |
org.apache.solr.response.SolrQueryResponse |
getSolrQueryResponse() |
void |
setContentType(String contentType) |
void |
setSolrResponseException(int code,
org.apache.solr.common.util.NamedList info) |
void |
writeQueryResponseComplete(org.apache.solr.response.SolrQueryResponse solrQueryResponse)
after writeQueryResponse call this method
|
public void setContentType(String contentType)
public OutputStream getResponseOutputStream()
public void setSolrResponseException(int code,
org.apache.solr.common.util.NamedList info)
public void addError(int code,
String message)
addError 在接口中 ResponseSetter<SolrProtocol.SolrResponse>public void addError(Throwable ex)
addError 在接口中 ResponseSetter<SolrProtocol.SolrResponse>public void addError(int code,
Throwable ex)
addError 在接口中 ResponseSetter<SolrProtocol.SolrResponse>public void writeQueryResponseComplete(org.apache.solr.response.SolrQueryResponse solrQueryResponse)
ResponseSetterpublic org.apache.solr.response.SolrQueryResponse getSolrQueryResponse()
public SolrProtocol.SolrResponse buildProtocolResponse()
Copyright © 2016 vootoo. All rights reserved.