Class SqlStream

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

public class SqlStream extends TupleStream implements Expressible
Since:
7.0.0
See Also:
  • Field Details

    • solrConnection

      protected org.apache.solr.client.solrj.impl.CloudSolrClient.CloudSolrClientConnection solrConnection
    • collection

      protected String collection
    • params

      protected org.apache.solr.common.params.SolrParams params
    • tupleStream

      protected transient TupleStream tupleStream
    • streamContext

      protected transient StreamContext streamContext
  • Constructor Details

    • SqlStream

      public SqlStream(org.apache.solr.client.solrj.impl.CloudSolrClient.CloudSolrClientConnection solrConnection, String collectionName, org.apache.solr.common.params.SolrParams params) throws IOException
      Parameters:
      solrConnection - Zookeeper or HTTPS(s) ensemble connection string
      collectionName - Name of the collection to operate on
      params - Map<String, String> of parameter/value pairs
      Throws:
      IOException - Something went wrong

      This form does not allow specifying multiple clauses, say "fq" clauses, use the form that takes a SolrParams. Transition code can call the preferred method that takes SolrParams by calling CloudSolrStream(solrConnection, collectionName, new ModifiableSolrParams(SolrParams.toMultiMap(new NamedList(Map<String, String>)));

    • SqlStream

      public SqlStream(StreamExpression expression, StreamFactory factory) throws IOException
      Throws:
      IOException
  • Method Details