public class SolrStream extends TupleStream
| Constructor and Description |
|---|
SolrStream(String baseUrl,
Map params) |
| Modifier and Type | Method and Description |
|---|---|
List<TupleStream> |
children() |
void |
close()
Closes the Stream to a single Solr Instance
|
String |
getBaseUrl() |
void |
open()
Opens the stream to a single Solr instance.
|
Tuple |
read()
Reads a Tuple from the stream.
|
void |
setFieldMappings(Map<String,String> fieldMappings) |
void |
setStreamContext(StreamContext context) |
void |
setTrace(boolean trace)
Setting trace to true will include the "_CORE_" field in each Tuple emitted by the stream.
|
getCostpublic List<TupleStream> children()
children in class TupleStreampublic String getBaseUrl()
public void setStreamContext(StreamContext context)
setStreamContext in class TupleStreampublic void open()
throws IOException
open in class TupleStreamIOExceptionpublic void setTrace(boolean trace)
public void close()
throws IOException
close in class TupleStreamIOExceptionpublic Tuple read() throws IOException
read in class TupleStreamIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.