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.ACTIONSolrRequest.METHODcommitWithin, paramsSUPPORTED_METHODS, useBinaryV2, usev2| Constructor and Description | 
|---|
| ContentStreamUpdateRequest(String url) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addContentStream(ContentStream contentStream)Add a  ContentStreamtogetContentStreams() | 
| void | addFile(File file,
       String contentType)Add a File to the  ContentStreams. | 
| Collection<ContentStream> | getContentStreams() | 
| RequestWriter.ContentWriter | getContentWriter(String expectedType)If a request object wants to do a push write, implement this method. | 
createResponse, getAction, getCommitWithin, getParams, isWaitSearcher, rollback, setAction, setAction, setAction, setAction, setAction, setAction, setAction, setCommitWithin, setParam, setParams, setWaitSearcheraddHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getHeaders, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2public ContentStreamUpdateRequest(String url)
url - The URL to send the ContentStream to in Solr.public Collection<ContentStream> getContentStreams() throws IOException
getContentStreams in class SolrRequest<UpdateResponse>IOExceptionpublic RequestWriter.ContentWriter getContentWriter(String expectedType)
SolrRequestgetContentWriter in class SolrRequest<UpdateResponse>expectedType - This is the type that the RequestWriter would like to get. But, it is OK to send any formatpublic void addFile(File file, String contentType) 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 ContentStreamCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.