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(SolrClient server, 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(SolrClient server, SolrParams requestParams) throws IOException, SolrServerException
- Throws:
IOException
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
-
-