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, setTrace
writeStreamClose, writeStreamOpen
public TopicStream(String zkHost, String checkpointCollection, String collection, String id, long checkpointEvery, Map<String,String> params)
public TopicStream(StreamExpression expression, StreamFactory factory) throws IOException
IOException
public StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
toExpression
in interface Expressible
toExpression
in class CloudSolrStream
IOException
public List<TupleStream> children()
children
in class CloudSolrStream
public void open() throws IOException
CloudSolrStream
open
in class CloudSolrStream
IOException
public void close() throws IOException
CloudSolrStream
close
in interface Closeable
close
in interface AutoCloseable
close
in class CloudSolrStream
IOException
public Tuple read() throws IOException
read
in class CloudSolrStream
IOException
public int getCost()
getCost
in class TupleStream
protected void constructStreams() throws IOException
constructStreams
in class CloudSolrStream
IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.