Class CSVColumnMapper


  • public final class CSVColumnMapper
    extends Object
    Maps column names to index of column. There are 2 predefined columns: buildnumber and timestamp. There may be existing column names (from an existing csv file). And there may be additional metric/column names from MetricMetaData.
    Author:
    andreas
    • Constructor Detail

      • CSVColumnMapper

        public CSVColumnMapper​(com.hello2morrow.sonargraph.integration.access.model.IExportMetaData metricMetaData,
                               String... existingColumnNames)
      • CSVColumnMapper

        public CSVColumnMapper​(MetricIds metricMetaData,
                               String... existingColumnNames)
    • Method Detail

      • getIndex

        public int getIndex​(String columnName)
      • getColumnNames

        public String[] getColumnNames​(boolean metricOnly)