Package org.apache.solr.handler.loader
Class CSVLoaderBase
java.lang.Object
org.apache.solr.handler.loader.ContentStreamLoader
org.apache.solr.handler.loader.CSVLoaderBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected final UpdateRequestProcessorstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected final AddUpdateCommandstatic final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCSVLoaderBase(SolrQueryRequest req, UpdateRequestProcessor processor) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcalled for each line of values (document)protected voiddoAdd(int line, String[] vals, org.apache.solr.common.SolrInputDocument doc, AddUpdateCommand template) this must be MT safe...voidload(SolrQueryRequest req, SolrQueryResponse rsp, org.apache.solr.common.util.ContentStream stream, UpdateRequestProcessor processor) load the CSV inputMethods inherited from class org.apache.solr.handler.loader.ContentStreamLoader
getDefaultWT, init
-
Field Details
-
SEPARATOR
- See Also:
-
FIELDNAMES
- See Also:
-
HEADER
- See Also:
-
SKIP
- See Also:
-
SKIPLINES
- See Also:
-
MAP
- See Also:
-
TRIM
- See Also:
-
EMPTY
- See Also:
-
SPLIT
- See Also:
-
ENCAPSULATOR
- See Also:
-
ESCAPE
- See Also:
-
OVERWRITE
- See Also:
-
LITERALS_PREFIX
- See Also:
-
ROW_ID
- See Also:
-
ROW_ID_OFFSET
- See Also:
-
processor
-
templateAdd
-
-
Constructor Details
-
CSVLoaderBase
-
-
Method Details
-
load
public void load(SolrQueryRequest req, SolrQueryResponse rsp, org.apache.solr.common.util.ContentStream stream, UpdateRequestProcessor processor) throws IOException load the CSV input- Specified by:
loadin classContentStreamLoader- Parameters:
req- The inputSolrQueryRequestrsp- The response, in case the Loader wishes to add anythingstream- TheContentStreamto addprocessor- TheUpdateRequestProcessorto use- Throws:
IOException
-
addDoc
called for each line of values (document)- Throws:
IOException
-
doAdd
protected void doAdd(int line, String[] vals, org.apache.solr.common.SolrInputDocument doc, AddUpdateCommand template) throws IOException this must be MT safe... may be called concurrently from multiple threads.- Throws:
IOException
-