public class ContentStreamUpdateRequest extends AbstractUpdateRequest
ContentStream to a Solr Cell or some
other handler that takes ContentStreams (CSV)
See http://wiki.apache.org/solr/ExtractingRequestHandlerAbstractUpdateRequest.ACTIONSolrRequest.METHODcommitWithin, params| 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)
Add a File to the
ContentStreams. |
Collection<ContentStream> |
getContentStreams() |
getAction, getCommitWithin, getParams, isWaitFlush, isWaitSearcher, process, rollback, setAction, setAction, setAction, setCommitWithin, setParam, setParams, setWaitFlush, setWaitSearchergetMethod, getPath, getResponseParser, setMethod, setPath, setResponseParserpublic ContentStreamUpdateRequest(String url)
url - The URL to send the ContentStream to in Solr.public Collection<ContentStream> getContentStreams() throws IOException
getContentStreams in class SolrRequestIOExceptionpublic void addFile(File file) throws IOException
ContentStreams.file - The File to add.IOException - if there was an error with the file.getContentStreams(),
ContentStreamBase.FileStreampublic void addContentStream(ContentStream contentStream)
ContentStream to getContentStreams()contentStream - The ContentStream