Class JSONTupleStream
- java.lang.Object
-
- org.apache.solr.client.solrj.io.stream.JSONTupleStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,TupleStreamParser
public class JSONTupleStream extends Object implements TupleStreamParser
-
-
Constructor Summary
Constructors Constructor Description JSONTupleStream(Reader reader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static JSONTupleStream
create(org.apache.solr.client.solrj.SolrClient server, org.apache.solr.common.params.SolrParams requestParams)
Map<String,Object>
next()
returns the next Tuple or null
-
-
-
Constructor Detail
-
JSONTupleStream
public JSONTupleStream(Reader reader)
-
-
Method Detail
-
create
public static JSONTupleStream create(org.apache.solr.client.solrj.SolrClient server, org.apache.solr.common.params.SolrParams requestParams) throws IOException, org.apache.solr.client.solrj.SolrServerException
- Throws:
IOException
org.apache.solr.client.solrj.SolrServerException
-
next
public Map<String,Object> next() throws IOException
returns the next Tuple or null- Specified by:
next
in interfaceTupleStreamParser
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-