public class ContentStreamUpdateRequest extends AbstractUpdateRequest
ContentStream
to a Solr Cell or some
other handler that takes ContentStreams (CSV)
See http://wiki.apache.org/solr/ExtractingRequestHandler
See http://wiki.apache.org/solr/UpdateCSV
AbstractUpdateRequest.ACTION
SolrRequest.METHOD
commitWithin, params
SUPPORTED_METHODS
Constructor and Description |
---|
ContentStreamUpdateRequest(String url) |
Modifier and Type | Method and Description |
---|---|
void |
addContentStream(ContentStream contentStream)
Add a
ContentStream to getContentStreams() |
void |
addFile(File file,
String contentType)
Add a File to the
ContentStream s. |
Collection<ContentStream> |
getContentStreams() |
createResponse, getAction, getCommitWithin, getParams, isWaitSearcher, rollback, setAction, setAction, setAction, setAction, setAction, setAction, setAction, setCommitWithin, setParam, setParams, setWaitSearcher
getBasicAuthPassword, getBasicAuthUser, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback
public ContentStreamUpdateRequest(String url)
url
- The URL to send the ContentStream
to in Solr.public Collection<ContentStream> getContentStreams() throws IOException
getContentStreams
in class SolrRequest<UpdateResponse>
IOException
public void addFile(File file, String contentType) throws IOException
ContentStream
s.file
- The File to add.IOException
- if there was an error with the file.getContentStreams()
,
ContentStreamBase.FileStream
public void addContentStream(ContentStream contentStream)
ContentStream
to getContentStreams()
contentStream
- The ContentStream
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.