com.continuent.tungsten.replicator.applier.batch
Interface CsvLoader

All Known Implementing Classes:
SqlCsvLoader, VerticaCsvLoader

public interface CsvLoader

Denotes a CsvLoader class, which handles loading of CsvData into a DBMS. Implementations must support bean conventions including default constructor and setters for all properties. Instances are auto-generated from the replicator service properties file.


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.
 

Method Detail

load

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.

Parameters:
conn - JDBC connection to the DBMS
info - Information on CSV file and table to which it applies
onLoadMismatch - How to handle a mismatch between actual rows loaded to DBMS and rows in the CSV file
Throws:
ReplicatorException - Thrown if load fails