public class ParallelStream extends CloudSolrStream implements ExpressibleStream
CloudSolrStream.StreamOpener, CloudSolrStream.TupleWrapper
cache, cloudSolrClient, collection, comp, eofTuples, params, solrStreams, streamContext, tuples, zkHost
Constructor and Description |
---|
ParallelStream(StreamExpression expression,
StreamFactory factory) |
ParallelStream(String zkHost,
String collection,
String expressionString,
int workers,
Comparator<Tuple> comp) |
ParallelStream(String zkHost,
String collection,
TupleStream tupleStream,
int workers,
Comparator<Tuple> comp) |
Modifier and Type | Method and Description |
---|---|
List<TupleStream> |
children() |
protected void |
constructStreams() |
boolean |
getObjectSerialize() |
Tuple |
read() |
void |
setObjectSerialize(boolean objectSerialize) |
void |
setStreamContext(StreamContext streamContext) |
StreamExpression |
toExpression(StreamFactory factory) |
_read, close, getEofTuples, open, setFieldMappings, setTrace
getCost
public ParallelStream(String zkHost, String collection, TupleStream tupleStream, int workers, Comparator<Tuple> comp) throws IOException
IOException
public ParallelStream(String zkHost, String collection, String expressionString, int workers, Comparator<Tuple> comp) throws IOException
IOException
public ParallelStream(StreamExpression expression, StreamFactory factory) throws IOException
IOException
public StreamExpression toExpression(StreamFactory factory) throws IOException
toExpression
in interface ExpressibleStream
toExpression
in class CloudSolrStream
IOException
public List<TupleStream> children()
children
in class CloudSolrStream
public Tuple read() throws IOException
read
in class CloudSolrStream
IOException
public void setStreamContext(StreamContext streamContext)
setStreamContext
in class CloudSolrStream
protected void constructStreams() throws IOException
constructStreams
in class CloudSolrStream
IOException
public void setObjectSerialize(boolean objectSerialize)
public boolean getObjectSerialize()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.