Class StreamContext

  • All Implemented Interfaces:
    Serializable

    public class StreamContext
    extends Object
    implements Serializable
    The StreamContext is passed to TupleStreams using the TupleStream.setStreamContext() method. The StreamContext is used to pass shared context to concentrically wrapped TupleStreams.

    Note: The StreamContext contains the SolrClientCache which is used to cache SolrClients for reuse across multiple TupleStreams.

    See Also:
    Serialized Form
    • Field Detail

      • workerID

        public int workerID
      • numWorkers

        public int numWorkers
    • Constructor Detail

      • StreamContext

        public StreamContext()
    • Method Detail

      • containsKey

        public boolean containsKey​(Object key)
      • setSolrClientCache

        public void setSolrClientCache​(SolrClientCache clientCache)
      • setModelCache

        public void setModelCache​(ModelCache modelCache)
      • getModelCache

        public ModelCache getModelCache()
      • setStreamFactory

        public void setStreamFactory​(StreamFactory streamFactory)
      • setLocal

        public void setLocal​(boolean local)
      • isLocal

        public boolean isLocal()
      • setRequestParams

        public void setRequestParams​(org.apache.solr.common.params.SolrParams requestParams)
      • getRequestParams

        public org.apache.solr.common.params.SolrParams getRequestParams()
      • setRequestReplicaListTransformerGenerator

        public void setRequestReplicaListTransformerGenerator​(org.apache.solr.client.solrj.routing.RequestReplicaListTransformerGenerator requestReplicaListTransformerGenerator)
      • getRequestReplicaListTransformerGenerator

        public org.apache.solr.client.solrj.routing.RequestReplicaListTransformerGenerator getRequestReplicaListTransformerGenerator()