public class SolrStream extends TupleStream
Modifier and Type | Class and Description |
---|---|
static class |
SolrStream.HandledException |
MapWriter.EntryWriter
Constructor and Description |
---|
SolrStream(String baseUrl,
Map params)
Deprecated.
|
SolrStream(String baseUrl,
SolrParams params) |
Modifier and Type | Method and Description |
---|---|
List<TupleStream> |
children() |
void |
close()
Closes the Stream to a single Solr Instance
|
static TupleStreamParser |
constructParser(SolrClient server,
SolrParams requestParams) |
String |
getBaseUrl() |
StreamComparator |
getStreamSort()
There is no known sort applied to a SolrStream
|
void |
open()
Opens the stream to a single Solr instance.
|
Tuple |
read()
Reads a Tuple from the stream.
|
void |
setCheckpoint(long checkpoint) |
void |
setFieldMappings(Map<String,String> fieldMappings) |
void |
setSlice(String slice) |
void |
setStreamContext(StreamContext context) |
void |
setTrace(boolean trace)
Setting trace to true will include the "_CORE_" field in each Tuple emitted by the stream.
|
Explanation |
toExplanation(StreamFactory factory) |
getCost, getShards, getSlices, getStreamNodeId, writeMap
@Deprecated public SolrStream(String baseUrl, Map params)
baseUrl
- Base URL of the stream.params
- Map<String, String> of parameterspublic SolrStream(String baseUrl, SolrParams params)
baseUrl
- Base URL of the stream.params
- Map<String, String> of parameterspublic List<TupleStream> children()
children
in class TupleStream
public String getBaseUrl()
public void setStreamContext(StreamContext context)
setStreamContext
in class TupleStream
public void open() throws IOException
open
in class TupleStream
IOException
public void setTrace(boolean trace)
public void setSlice(String slice)
public void setCheckpoint(long checkpoint)
public Explanation toExplanation(StreamFactory factory) throws IOException
toExplanation
in class TupleStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class TupleStream
IOException
public Tuple read() throws IOException
read
in class TupleStream
IOException
public StreamComparator getStreamSort()
getStreamSort
in class TupleStream
public static TupleStreamParser constructParser(SolrClient server, SolrParams requestParams) throws IOException, SolrServerException
IOException
SolrServerException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.