deduper / org.bradfordmiller.deduper.persistors / TargetPersistor

TargetPersistor

interface TargetPersistor : WritePersistor<Map<String, Any>>

definition for writing out deduped data to a target flat file or sql table

Functions

createTarget

writes out target file or sql table based on qi. deleteIfTargetExists determines if the target is deleted before populating it with data

abstract fun createTarget(qi: QueryInfo, deleteIfTargetExists: Boolean): Unit

writeRows

writes out a list of key/value pairs contained in rows. The key is the column name, and the value is the data value for the column

abstract fun writeRows(rows: MutableList<Map<String, Any>>): Long

Inheritors

CsvTargetPersistor

create and writes out "deduped" data to csv target. target is configured in config

class CsvTargetPersistor : CsvPersistor, TargetPersistor

SqlTargetPersistor

create and writes out "deduped" data to a sql table. targetName is the table name in the javax.sql.DataSource configured in the targetJndi for the associated context. varcharPadding is a number of extra bytes which can be configured if the target needs larger varchar fields than were extracted by the source.

class SqlTargetPersistor : TargetPersistor