public class OpenCSVBatcher
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
OpenCSVBatcher.BatchProcessor |
A processor for a batch of CSV rows.
|
static class |
OpenCSVBatcher.BatchSplitter |
BatchSplitter processes a batch of CSV rows by
using DocumentSplitter to split them into separate documents on the
server.
|
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
RESTAPI_NS |
|
static java.lang.String |
RESTAPI_PREFIX |
Constructor | Description |
---|---|
OpenCSVBatcher(DatabaseClient client) |
|
OpenCSVBatcher(OpenCSVBatcher.BatchProcessor processor) |
Modifier and Type | Method | Description |
---|---|---|
int |
getBatchSize() |
|
boolean |
getHasHeader() |
|
protected
com.opencsv.CSVReader |
makeParser(java.io.Reader content) |
|
void |
setBatchSize(int batchSize) |
|
void |
setHasHeader(boolean hasHeader) |
|
long |
write(java.io.Reader content) |
|
long |
write(java.io.Reader content,
java.lang.String directory) |
|
long |
write(java.io.Reader content,
java.lang.String directory,
java.lang.String rowName) |
|
long |
write(java.io.Reader content,
java.lang.String directory, java.lang.String rowName,
javax.xml.namespace.QName... colNames) |
|
long |
write(java.io.Reader content,
java.lang.String directory,
javax.xml.namespace.QName rowName) |
|
long |
write(java.io.Reader content,
java.lang.String directory,
javax.xml.namespace.QName rowName,
javax.xml.namespace.QName... colNames) |
|
long |
write(java.io.Reader content,
javax.xml.namespace.QName rowName) |
public static final java.lang.String RESTAPI_NS
public static final java.lang.String RESTAPI_PREFIX
public OpenCSVBatcher(OpenCSVBatcher.BatchProcessor processor)
public OpenCSVBatcher(DatabaseClient client)
public int getBatchSize()
public void setBatchSize(int batchSize)
public boolean getHasHeader()
public void setHasHeader(boolean hasHeader)
protected com.opencsv.CSVReader makeParser(java.io.Reader content)
public long write(java.io.Reader content) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public long write(java.io.Reader content, java.lang.String directory) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public long write(java.io.Reader content, javax.xml.namespace.QName rowName) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public long write(java.io.Reader content, java.lang.String directory, java.lang.String rowName) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public long write(java.io.Reader content, java.lang.String directory, javax.xml.namespace.QName rowName) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public long write(java.io.Reader content, java.lang.String directory, java.lang.String rowName, javax.xml.namespace.QName... colNames) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public long write(java.io.Reader content, java.lang.String directory, javax.xml.namespace.QName rowName, javax.xml.namespace.QName... colNames) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
Copyright © 2022 MarkLogic Corporation