Class StreamContext
- java.lang.Object
-
- org.apache.solr.client.solrj.io.stream.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 Summary
Fields Modifier and Type Field Description int
numWorkers
int
workerID
-
Constructor Summary
Constructors Constructor Description StreamContext()
-
Method Summary
-
-
-
Method Detail
-
getObjectCache
public ConcurrentMap<String,ConcurrentMap<String,Object>> getObjectCache()
-
setObjectCache
public void setObjectCache(ConcurrentMap<String,ConcurrentMap<String,Object>> objectCache)
-
containsKey
public boolean containsKey(Object key)
-
setSolrClientCache
public void setSolrClientCache(SolrClientCache clientCache)
-
setModelCache
public void setModelCache(ModelCache modelCache)
-
getSolrClientCache
public SolrClientCache getSolrClientCache()
-
getModelCache
public ModelCache getModelCache()
-
setStreamFactory
public void setStreamFactory(StreamFactory streamFactory)
-
getStreamFactory
public StreamFactory getStreamFactory()
-
setLocal
public void setLocal(boolean local)
-
isLocal
public boolean isLocal()
-
setRequestParams
public void setRequestParams(SolrParams requestParams)
-
getRequestParams
public SolrParams getRequestParams()
-
setRequestReplicaListTransformerGenerator
public void setRequestReplicaListTransformerGenerator(RequestReplicaListTransformerGenerator requestReplicaListTransformerGenerator)
-
getRequestReplicaListTransformerGenerator
public RequestReplicaListTransformerGenerator getRequestReplicaListTransformerGenerator()
-
-