public class TopicStream extends CloudSolrStream implements Expressible
CloudSolrStream.StreamOpener, CloudSolrStream.TupleWrapper| Modifier and Type | Field and Description |
|---|---|
protected long |
checkpointEvery |
cache, 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 checkpointEvery,
Map<String,String> 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() |
StreamExpressionParameter |
toExpression(StreamFactory factory) |
_read, getEofTuples, getStreamSort, setFieldMappings, setStreamContext, setTracewriteStreamClose, writeStreamOpenpublic TopicStream(String zkHost, String checkpointCollection, String collection, String id, long checkpointEvery, Map<String,String> params)
public TopicStream(StreamExpression expression, StreamFactory factory) throws IOException
IOExceptionpublic StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
toExpression in interface ExpressibletoExpression in class CloudSolrStreamIOExceptionpublic 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-2016 Apache Software Foundation. All Rights Reserved.