public class SolrStream extends TupleStream
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SolrStream.HandledException |
TupleStream.IgnoreExceptionMapWriter.EntryWriter| 构造器和说明 |
|---|
SolrStream(String baseUrl,
SolrParams params) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<TupleStream> |
children() |
void |
close()
Closes the Stream to a single Solr Instance
|
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 |
setCredentials(String user,
String password) |
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, getShards, getStreamNodeId, writeMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _sizepublic SolrStream(String baseUrl, SolrParams params)
baseUrl - Base URL of the stream.params - Map<String, String> of parameterspublic List<TupleStream> children()
children 在类中 TupleStreampublic String getBaseUrl()
public void setStreamContext(StreamContext context)
setStreamContext 在类中 TupleStreampublic void open()
throws IOException
open 在类中 TupleStreamIOExceptionpublic void setTrace(boolean trace)
public void setSlice(String slice)
public void setCheckpoint(long checkpoint)
public Explanation toExplanation(StreamFactory factory) throws IOException
toExplanation 在类中 TupleStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 TupleStreamIOExceptionpublic Tuple read() throws IOException
read 在类中 TupleStreamIOExceptionpublic StreamComparator getStreamSort()
getStreamSort 在类中 TupleStream@Deprecated public TupleStreamParser constructParser(SolrClient server, SolrParams requestParams) throws IOException, SolrServerException
server - The SolrClientrequestParams - Request paramsIOException - if an I/O related error occurs contacting the remote Solr instanceSolrServerException - if an error occurs contacting the remote Solr instanceCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.