Search in sources :

Example 1 with RowListProcessor

use of com.univocity.parsers.common.processor.RowListProcessor in project lightning by automatictester.

the class JMeterCSVFileReader method getParser.

protected CsvParser getParser() {
    CsvParserSettings parserSettings = new CsvParserSettings();
    parserSettings.setLineSeparatorDetectionEnabled(true);
    parserSettings.setHeaderExtractionEnabled(true);
    parserSettings.selectFields("label", "elapsed", "success", "timeStamp");
    RowListProcessor rowProcessor = new RowListProcessor();
    parserSettings.setProcessor(new ConcurrentRowProcessor(rowProcessor));
    return new CsvParser(parserSettings);
}
Also used : CsvParserSettings(com.univocity.parsers.csv.CsvParserSettings) RowListProcessor(com.univocity.parsers.common.processor.RowListProcessor) ConcurrentRowProcessor(com.univocity.parsers.common.processor.ConcurrentRowProcessor) CsvParser(com.univocity.parsers.csv.CsvParser)

Example 2 with RowListProcessor

use of com.univocity.parsers.common.processor.RowListProcessor in project lightning by automatictester.

the class PerfMonDataReader method getParser.

protected CsvParser getParser() {
    CsvParserSettings parserSettings = new CsvParserSettings();
    parserSettings.setLineSeparatorDetectionEnabled(true);
    parserSettings.setHeaderExtractionEnabled(false);
    parserSettings.selectIndexes(TIMESTAMP, VALUE, HOST_AND_METRIC);
    RowListProcessor rowProcessor = new RowListProcessor();
    parserSettings.setProcessor(new ConcurrentRowProcessor(rowProcessor));
    return new CsvParser(parserSettings);
}
Also used : CsvParserSettings(com.univocity.parsers.csv.CsvParserSettings) RowListProcessor(com.univocity.parsers.common.processor.RowListProcessor) ConcurrentRowProcessor(com.univocity.parsers.common.processor.ConcurrentRowProcessor) CsvParser(com.univocity.parsers.csv.CsvParser)

Aggregations

ConcurrentRowProcessor (com.univocity.parsers.common.processor.ConcurrentRowProcessor)2 RowListProcessor (com.univocity.parsers.common.processor.RowListProcessor)2 CsvParser (com.univocity.parsers.csv.CsvParser)2 CsvParserSettings (com.univocity.parsers.csv.CsvParserSettings)2