deduper / org.bradfordmiller.deduper.persistors / CsvDupePersistor

CsvDupePersistor

class CsvDupePersistor : CsvPersistor, DupePersistor

creates and writes out duplicate data to csv target. duplicate target is configured in config

Constructors

<init>

creates and writes out duplicate data to csv target. duplicate target is configured in config

CsvDupePersistor(config: Map<String, String>)

Functions

createDupe

creates duplicate output csv file. deleteIfDupeExists determines whether the file is deleted if it already exists

fun createDupe(deleteIfDupeExists: Boolean): Unit

writeRows

writes out a list of duplicate data rows to a csv and returns the number of rows written

fun writeRows(rows: MutableList<Pair<String, Pair<MutableList<Long>, Dupe>>>): Long