Interface RecordTargetWriter

All Known Subinterfaces:
FileTargetWriter
All Known Implementing Classes:
CsvDirectoryAdapter, H2Adapter, JdbcRecordAdapter, PostgreSqlAdapter, XlsxWorkbookAdapter

public interface RecordTargetWriter
Abstraction for writing records to a target backend.

Implementations are free to map targetName to a table name, CSV file, worksheet name, API endpoint, etc.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(String targetName, List<Map<String,Object>> rows)
    Writes rows to a backend object.
  • Method Details

    • write

      void write(String targetName, List<Map<String,Object>> rows) throws Exception
      Writes rows to a backend object.
      Parameters:
      targetName - backend-specific target object name
      rows - rows to write as column/value maps
      Throws:
      Exception - on backend access failures