Package org.apache.solr.response
Class BinaryResponseWriter.Resolver
- java.lang.Object
-
- org.apache.solr.response.BinaryResponseWriter.Resolver
-
- All Implemented Interfaces:
JavaBinCodec.ObjectResolver
,JavaBinCodec.WritableDocFields
- Enclosing class:
- BinaryResponseWriter
public static class BinaryResponseWriter.Resolver extends Object implements JavaBinCodec.ObjectResolver, JavaBinCodec.WritableDocFields
-
-
Field Summary
Fields Modifier and Type Field Description protected ReturnFields
returnFields
protected IndexSchema
schema
protected SolrQueryRequest
solrQueryRequest
-
Constructor Summary
Constructors Constructor Description Resolver(SolrQueryRequest req, ReturnFields returnFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isWritable(String name)
Object
resolve(Object o, JavaBinCodec codec)
boolean
wantsAllFields()
void
writeResults(ResultContext ctx, JavaBinCodec codec)
protected void
writeResultsBody(ResultContext res, JavaBinCodec codec)
-
-
-
Field Detail
-
solrQueryRequest
protected final SolrQueryRequest solrQueryRequest
-
schema
protected IndexSchema schema
-
returnFields
protected ReturnFields returnFields
-
-
Constructor Detail
-
Resolver
public Resolver(SolrQueryRequest req, ReturnFields returnFields)
-
-
Method Detail
-
resolve
public Object resolve(Object o, JavaBinCodec codec) throws IOException
- Specified by:
resolve
in interfaceJavaBinCodec.ObjectResolver
- Throws:
IOException
-
isWritable
public boolean isWritable(String name)
- Specified by:
isWritable
in interfaceJavaBinCodec.WritableDocFields
-
wantsAllFields
public boolean wantsAllFields()
- Specified by:
wantsAllFields
in interfaceJavaBinCodec.WritableDocFields
-
writeResultsBody
protected void writeResultsBody(ResultContext res, JavaBinCodec codec) throws IOException
- Throws:
IOException
-
writeResults
public void writeResults(ResultContext ctx, JavaBinCodec codec) throws IOException
- Throws:
IOException
-
-