Class TopicStream
- java.lang.Object
- 
- org.apache.solr.client.solrj.io.stream.TupleStream
- 
- org.apache.solr.client.solrj.io.stream.CloudSolrStream
- 
- org.apache.solr.client.solrj.io.stream.TopicStream
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- Serializable,- AutoCloseable,- Expressible,- org.apache.solr.common.MapSerializable,- org.apache.solr.common.MapWriter,- org.apache.solr.common.NavigableObject,- org.noggit.JSONWriter.Writable
 
 public class TopicStream extends CloudSolrStream implements Expressible - Since:
- 6.0.0
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.io.stream.CloudSolrStreamCloudSolrStream.StreamOpener, CloudSolrStream.TupleWrapper
 - 
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.io.stream.TupleStreamTupleStream.IgnoreException
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected longcheckpointEvery- 
Fields inherited from class org.apache.solr.client.solrj.io.stream.CloudSolrStreamcollection, comp, eofTuples, fieldMappings, params, solrStreams, streamContext, tuples, zkHost
 
- 
 - 
Constructor SummaryConstructors Constructor Description TopicStream(String zkHost, String checkpointCollection, String collection, String id, long initialCheckpoint, long checkpointEvery, org.apache.solr.common.params.SolrParams params)TopicStream(StreamExpression expression, StreamFactory factory)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TupleStream>children()voidclose()Closes the CloudSolrStreamprotected voidconstructStreams()intgetCost()voidopen()Opens the CloudSolrStreamTupleread()voidsetStreamContext(StreamContext context)ExplanationtoExplanation(StreamFactory factory)Returns an explanation about the stream objectStreamExpressiontoExpression(StreamFactory factory)- 
Methods inherited from class org.apache.solr.client.solrj.io.stream.CloudSolrStream_read, adjustParams, getEofTuples, getSlices, getStreamSort, setFieldMappings, setTrace
 - 
Methods inherited from class org.apache.solr.client.solrj.io.stream.TupleStreamgetShards, getShards, getStreamNodeId, writeMap
 
- 
 
- 
- 
- 
Constructor Detail- 
TopicStreampublic TopicStream(String zkHost, String checkpointCollection, String collection, String id, long initialCheckpoint, long checkpointEvery, org.apache.solr.common.params.SolrParams params) 
 - 
TopicStreampublic TopicStream(StreamExpression expression, StreamFactory factory) throws IOException - Throws:
- IOException
 
 
- 
 - 
Method Detail- 
toExpressionpublic StreamExpression toExpression(StreamFactory factory) throws IOException - Specified by:
- toExpressionin interface- Expressible
- Overrides:
- toExpressionin class- CloudSolrStream
- Throws:
- IOException
 
 - 
toExplanationpublic Explanation toExplanation(StreamFactory factory) throws IOException Description copied from interface:ExpressibleReturns an explanation about the stream object- Specified by:
- toExplanationin interface- Expressible
- Overrides:
- toExplanationin class- CloudSolrStream
- Parameters:
- factory- Stream factory for this, contains information about the function name
- Returns:
- Explanation about this stream object containing explanations of any child stream objects
- Throws:
- IOException- throw on any error
 
 - 
childrenpublic List<TupleStream> children() - Overrides:
- childrenin class- CloudSolrStream
 
 - 
openpublic void open() throws IOExceptionDescription copied from class:CloudSolrStreamOpens the CloudSolrStream- Overrides:
- openin class- CloudSolrStream
- Throws:
- IOException
 
 - 
closepublic void close() throws IOExceptionDescription copied from class:CloudSolrStreamCloses the CloudSolrStream- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- CloudSolrStream
- Throws:
- IOException
 
 - 
readpublic Tuple read() throws IOException - Overrides:
- readin class- CloudSolrStream
- Throws:
- IOException
 
 - 
getCostpublic int getCost() - Overrides:
- getCostin class- TupleStream
 
 - 
constructStreamsprotected void constructStreams() throws IOException- Overrides:
- constructStreamsin class- CloudSolrStream
- Throws:
- IOException
 
 - 
setStreamContextpublic void setStreamContext(StreamContext context) - Overrides:
- setStreamContextin class- CloudSolrStream
 
 
- 
 
-