Class DefaultSampleDocumentsLoader

java.lang.Object
org.apache.solr.handler.designer.DefaultSampleDocumentsLoader
All Implemented Interfaces:
SampleDocumentsLoader, NamedListInitializedPlugin

public class DefaultSampleDocumentsLoader extends Object implements SampleDocumentsLoader
  • Field Details

  • 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:
      parseDocsFromStream in interface SampleDocumentsLoader
      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

      protected List<Map<String,Object>> loadJsonLines(String[] lines) throws IOException
      Throws:
      IOException
    • detectTSV

      protected char detectTSV(String csvStr)