Package org.apache.solr.handler.loader
Class CborLoader
- java.lang.Object
-
- org.apache.solr.handler.loader.CborLoader
-
public class CborLoader extends Object
This class can load a single document or a stream of documents in CBOR format this is equivalent of loading a single json documet or an array of json documents
-
-
Constructor Summary
Constructors Constructor Description CborLoader(com.fasterxml.jackson.dataformat.cbor.CBORFactory cborFactory, Consumer<org.apache.solr.common.SolrInputDocument> sink)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentStreamLoader
createLoader(org.apache.solr.common.params.SolrParams p)
void
stream(InputStream is)
-
-
-
Constructor Detail
-
CborLoader
public CborLoader(com.fasterxml.jackson.dataformat.cbor.CBORFactory cborFactory, Consumer<org.apache.solr.common.SolrInputDocument> sink)
-
-
Method Detail
-
stream
public void stream(InputStream is) throws IOException
- Throws:
IOException
-
createLoader
public static ContentStreamLoader createLoader(org.apache.solr.common.params.SolrParams p)
-
-