Package org.apache.solr.handler.designer
Class DefaultSampleDocumentsLoader
java.lang.Object
org.apache.solr.handler.designer.DefaultSampleDocumentsLoader
- All Implemented Interfaces:
SampleDocumentsLoader,NamedListInitializedPlugin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected charprotected List<org.apache.solr.common.SolrInputDocument> loadCsvDocs(org.apache.solr.common.params.SolrParams params, String source, byte[] streamBytes, String charset, int maxDocsToLoad) protected List<org.apache.solr.common.SolrInputDocument> loadJsonDocs(org.apache.solr.common.util.ContentStreamBase.ByteArrayStream stream, int maxDocsToLoad) loadJsonLines(String[] lines) protected List<org.apache.solr.common.SolrInputDocument> loadJsonLines(org.apache.solr.common.util.ContentStreamBase.ByteArrayStream stream, int maxDocsToLoad) protected List<org.apache.solr.common.SolrInputDocument> loadXmlDocs(org.apache.solr.common.util.ContentStreamBase.ByteArrayStream stream, int maxDocsToLoad) parseDocsFromStream(org.apache.solr.common.params.SolrParams params, org.apache.solr.common.util.ContentStream stream, int maxDocsToLoad) protected List<org.apache.solr.common.SolrInputDocument> parseXmlDocs(XMLStreamReader parser, int maxDocsToLoad) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
initMethods inherited from interface org.apache.solr.handler.designer.SampleDocumentsLoader
ensureUniqueKey
-
Field Details
-
CSV_MULTI_VALUE_DELIM_PARAM
- See Also:
-
-
Constructor Details
-
DefaultSampleDocumentsLoader
public DefaultSampleDocumentsLoader()
-
-
Method Details
-
parseDocsFromStream
public SampleDocuments parseDocsFromStream(org.apache.solr.common.params.SolrParams params, org.apache.solr.common.util.ContentStream stream, int maxDocsToLoad) throws IOException - Specified by:
parseDocsFromStreamin interfaceSampleDocumentsLoader- Throws:
IOException
-
loadCsvDocs
protected List<org.apache.solr.common.SolrInputDocument> loadCsvDocs(org.apache.solr.common.params.SolrParams params, String source, byte[] streamBytes, String charset, int maxDocsToLoad) throws IOException - Throws:
IOException
-
loadJsonLines
protected List<org.apache.solr.common.SolrInputDocument> loadJsonLines(org.apache.solr.common.util.ContentStreamBase.ByteArrayStream stream, int maxDocsToLoad) throws IOException - Throws:
IOException
-
loadJsonDocs
protected List<org.apache.solr.common.SolrInputDocument> loadJsonDocs(org.apache.solr.common.util.ContentStreamBase.ByteArrayStream stream, int maxDocsToLoad) throws IOException - Throws:
IOException
-
loadXmlDocs
protected List<org.apache.solr.common.SolrInputDocument> loadXmlDocs(org.apache.solr.common.util.ContentStreamBase.ByteArrayStream stream, int maxDocsToLoad) throws IOException - Throws:
IOException
-
parseXmlDocs
protected List<org.apache.solr.common.SolrInputDocument> parseXmlDocs(XMLStreamReader parser, int maxDocsToLoad) throws XMLStreamException - Throws:
XMLStreamException
-
loadJsonLines
- Throws:
IOException
-
detectTSV
-