public class ExportWriter extends Object implements SolrCore.RawWriter, Closeable
Modifier and Type | Class and Description |
---|---|
static class |
ExportWriter.IgnoreException |
Constructor and Description |
---|
ExportWriter(SolrQueryRequest req,
SolrQueryResponse res,
String wt) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getContentType() |
protected org.apache.solr.handler.export.FieldWriter[] |
getFieldWriters(String[] fields,
SolrIndexSearcher searcher) |
void |
write(OutputStream os) |
protected void |
writeDoc(org.apache.solr.handler.export.SortDoc sortDoc,
List<LeafReaderContext> leaves,
MapWriter.EntryWriter ew) |
protected void |
writeDocs(SolrQueryRequest req,
IteratorWriter.ItemWriter writer,
Sort sort) |
protected void |
writeException(Exception e,
PushWriter w,
boolean logException) |
public ExportWriter(SolrQueryRequest req, SolrQueryResponse res, String wt)
public String getContentType()
getContentType
in interface SolrCore.RawWriter
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
protected void writeException(Exception e, PushWriter w, boolean logException) throws IOException
IOException
public void write(OutputStream os) throws IOException
write
in interface SolrCore.RawWriter
IOException
protected void writeDocs(SolrQueryRequest req, IteratorWriter.ItemWriter writer, Sort sort) throws IOException
IOException
protected void writeDoc(org.apache.solr.handler.export.SortDoc sortDoc, List<LeafReaderContext> leaves, MapWriter.EntryWriter ew) throws IOException
IOException
protected org.apache.solr.handler.export.FieldWriter[] getFieldWriters(String[] fields, SolrIndexSearcher searcher) throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.