com.continuent.tungsten.replicator.applier.batch
Class VerticaCsvLoader
java.lang.Object
com.continuent.tungsten.replicator.applier.batch.SqlCsvLoader
com.continuent.tungsten.replicator.applier.batch.VerticaCsvLoader
- All Implemented Interfaces:
- CsvLoader
public class VerticaCsvLoader
- extends SqlCsvLoader
Implements a CSV loader that uses streaming interface available from the
Vertica JDBC driver.
|
Method Summary |
void |
load(Database conn,
CsvInfo info,
LoadMismatch onLoadMismatch)
Loads a CSV file to the DBMS using an appropriate mechanism for this DBMS
type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stageLoadScript
protected java.lang.String stageLoadScript
loadScriptGenerator
protected SqlScriptGenerator loadScriptGenerator
loadScripts
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> loadScripts
VerticaCsvLoader
public VerticaCsvLoader()
load
public void load(Database conn,
CsvInfo info,
LoadMismatch onLoadMismatch)
throws ReplicatorException
- Loads a CSV file to the DBMS using an appropriate mechanism for this DBMS
type.
- Specified by:
load in interface CsvLoader- Overrides:
load in class SqlCsvLoader
- Parameters:
conn - JDBC connection to the DBMSinfo - Information on CSV file and table to which it appliesonLoadMismatch - How to handle a mismatch between actual rows loaded
to DBMS and rows in the CSV file
- Throws:
ReplicatorException - Thrown if load fails- See Also:
CsvLoader.load(com.continuent.tungsten.replicator.database.Database,
com.continuent.tungsten.replicator.applier.batch.CsvInfo,
com.continuent.tungsten.replicator.applier.batch.LoadMismatch)