Package org.apache.solr.handler.export
Class ExportWriter
- java.lang.Object
-
- org.apache.solr.handler.export.ExportWriter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SolrCore.RawWriter
public class ExportWriter extends Object implements SolrCore.RawWriter, Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExportWriter.IgnoreException
-
Constructor Summary
Constructors Constructor Description ExportWriter(SolrQueryRequest req, SolrQueryResponse res, String wt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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<org.apache.lucene.index.LeafReaderContext> leaves, MapWriter.EntryWriter ew)
protected void
writeDocs(SolrQueryRequest req, IteratorWriter.ItemWriter writer, org.apache.lucene.search.Sort sort)
protected void
writeException(Exception e, PushWriter w, boolean logException)
-
-
-
Constructor Detail
-
ExportWriter
public ExportWriter(SolrQueryRequest req, SolrQueryResponse res, String wt)
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceSolrCore.RawWriter
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
writeException
protected void writeException(Exception e, PushWriter w, boolean logException) throws IOException
- Throws:
IOException
-
write
public void write(OutputStream os) throws IOException
- Specified by:
write
in interfaceSolrCore.RawWriter
- Throws:
IOException
-
writeDocs
protected void writeDocs(SolrQueryRequest req, IteratorWriter.ItemWriter writer, org.apache.lucene.search.Sort sort) throws IOException
- Throws:
IOException
-
writeDoc
protected void writeDoc(org.apache.solr.handler.export.SortDoc sortDoc, List<org.apache.lucene.index.LeafReaderContext> leaves, MapWriter.EntryWriter ew) throws IOException
- Throws:
IOException
-
getFieldWriters
protected org.apache.solr.handler.export.FieldWriter[] getFieldWriters(String[] fields, SolrIndexSearcher searcher) throws IOException
- Throws:
IOException
-
-