public class TopicStream extends CloudSolrStream implements Expressible
CloudSolrStream.StreamOpener, CloudSolrStream.TupleWrapperMapWriter.EntryWriter| Modifier and Type | Field and Description |
|---|---|
protected long |
checkpointEvery |
cloudSolrClient, collection, comp, eofTuples, params, solrStreams, streamContext, tuples, zkHost| Constructor and Description |
|---|
TopicStream(StreamExpression expression,
StreamFactory factory) |
TopicStream(String zkHost,
String checkpointCollection,
String collection,
String id,
long initialCheckpoint,
long checkpointEvery,
Map<String,String> params)
Deprecated.
|
TopicStream(String zkHost,
String checkpointCollection,
String collection,
String id,
long initialCheckpoint,
long checkpointEvery,
SolrParams params) |
| Modifier and Type | Method and Description |
|---|---|
List<TupleStream> |
children() |
void |
close()
Closes the CloudSolrStream
|
protected void |
constructStreams() |
int |
getCost() |
void |
open()
Opens the CloudSolrStream
|
Tuple |
read() |
Explanation |
toExplanation(StreamFactory factory)
Returns an explanation about the stream object
|
StreamExpression |
toExpression(StreamFactory factory) |
_read, getEofTuples, getSlices, getStreamSort, setFieldMappings, setStreamContext, setTracegetShards, getStreamNodeId, writeMap@Deprecated public TopicStream(String zkHost, String checkpointCollection, String collection, String id, long initialCheckpoint, long checkpointEvery, Map<String,String> params)
public TopicStream(String zkHost, String checkpointCollection, String collection, String id, long initialCheckpoint, long checkpointEvery, SolrParams params)
public TopicStream(StreamExpression expression, StreamFactory factory) throws IOException
IOExceptionpublic StreamExpression toExpression(StreamFactory factory) throws IOException
toExpression in interface ExpressibletoExpression in class CloudSolrStreamIOExceptionpublic Explanation toExplanation(StreamFactory factory) throws IOException
ExpressibletoExplanation in interface ExpressibletoExplanation in class CloudSolrStreamfactory - Stream factory for this, contains information about the function nameIOException - throw on any errorpublic List<TupleStream> children()
children in class CloudSolrStreampublic void open()
throws IOException
CloudSolrStreamopen in class CloudSolrStreamIOExceptionpublic void close()
throws IOException
CloudSolrStreamclose in interface Closeableclose in interface AutoCloseableclose in class CloudSolrStreamIOExceptionpublic Tuple read() throws IOException
read in class CloudSolrStreamIOExceptionpublic int getCost()
getCost in class TupleStreamprotected void constructStreams()
throws IOException
constructStreams in class CloudSolrStreamIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.