Class DefaultSampleDocumentsLoader

    • Constructor Detail

      • DefaultSampleDocumentsLoader

        public DefaultSampleDocumentsLoader()
    • Method Detail

      • 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.params.SolrParams params,
                                                                               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.params.SolrParams params,
                                                                              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.params.SolrParams params,
                                                                             org.apache.solr.common.util.ContentStreamBase.ByteArrayStream stream,
                                                                             int maxDocsToLoad)
                                                                      throws IOException
        Throws:
        IOException
      • detectTSV

        protected char detectTSV​(String csvStr)