deduper / org.bradfordmiller.deduper.persistors / WritePersistor

WritePersistor

interface WritePersistor<T>

base definition for writing out output data

Parameters

T - type of row list persisting output data

Functions

writeRows

writes list of data contained in rows to output and returns the number of rows written

abstract fun writeRows(rows: MutableList<T>): Long

Inheritors

DupePersistor

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

interface DupePersistor : WritePersistor<Pair<String, Pair<MutableList<Long>, Dupe>>>

HashPersistor

definition for writing out hash values of rows found in source data

interface HashPersistor : WritePersistor<HashRow>

TargetPersistor

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

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