abstract fun writeRows(rows: MutableList<T>): Long
writes list of data contained in rows to output and returns the number of rows written