Class SolrStream

java.lang.Object
org.apache.solr.client.solrj.io.stream.TupleStream
org.apache.solr.client.solrj.io.stream.SolrStream
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, org.apache.solr.common.MapWriter, org.apache.solr.common.NavigableObject, org.noggit.JSONWriter.Writable

public class SolrStream extends TupleStream
Queries a single Solr instance and maps SolrDocs to a Stream of Tuples.
Since:
5.1.0
See Also:
  • Constructor Details

    • SolrStream

      @Deprecated(since="10.1") public SolrStream(String collectionOrCoreUrl, org.apache.solr.common.params.SolrParams params)
      Deprecated.
      Use base URL constructor instead.
      Parameters:
      collectionOrCoreUrl - URL of the Solr core or collection to query, typically of the form "http://host:8983/solr/myCore".
      params - query-parameters sent with the streaming request
    • SolrStream

      @Deprecated(since="10.1") public SolrStream(String collectionOrCoreUrl, String path, org.apache.solr.common.params.SolrParams params)
      Deprecated.
      Use base URL constructor instead.
      Parameters:
      collectionOrCoreUrl - URL of the Solr core or collection to query, typically of the form "http://host:8983/solr/myCore".
      path - the request handler path to query (e.g. "/export"). If not provided, defaults to "/select".
      params - query-parameters sent with the streaming request
    • SolrStream

      public SolrStream(String baseUrl, org.apache.solr.common.params.SolrParams params, String core)
      Parameters:
      baseUrl - the Solr node's "base" URL (i.e. no core or collection in the path
      params - query-parameters sent with the streaming request
      core - the name of the collection or core to query; must be hosted at baseUrl
    • SolrStream

      public SolrStream(String baseUrl, String core, String path, org.apache.solr.common.params.SolrParams params)
      Parameters:
      baseUrl - the Solr node's "base" URL (i.e. no core or collection in the path
      core - the name of the collection or core to query; must be hosted at baseUrl
      path - the request handler path to query (e.g. "/export"). If not provided (i.e. null), the handler is instead resolved from a "qt" param embedded in params, or defaults to "/select" if no such param is present.
      params - query-parameters sent with the streaming request
  • Method Details