Search in sources :

Example 1 with ConcurrentRowProcessor

use of com.univocity.parsers.common.processor.ConcurrentRowProcessor 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 ConcurrentRowProcessor

use of com.univocity.parsers.common.processor.ConcurrentRowProcessor 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)

Example 3 with ConcurrentRowProcessor

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

the class PerfMonDataReader method csvParserSettings.

@Override
public CsvParserSettings csvParserSettings() {
    CsvParserSettings parserSettings = new CsvParserSettings();
    parserSettings.setLineSeparatorDetectionEnabled(true);
    parserSettings.setHeaderExtractionEnabled(false);
    ConcurrentRowProcessor concurrentRowProcessor = new ConcurrentRowProcessor(beanListProcessor());
    parserSettings.setProcessor(concurrentRowProcessor);
    return parserSettings;
}
Also used : CsvParserSettings(com.univocity.parsers.csv.CsvParserSettings) ConcurrentRowProcessor(com.univocity.parsers.common.processor.ConcurrentRowProcessor)

Example 4 with ConcurrentRowProcessor

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

the class JmeterDataReader method csvParserSettings.

@Override
public CsvParserSettings csvParserSettings() {
    CsvParserSettings parserSettings = new CsvParserSettings();
    parserSettings.setLineSeparatorDetectionEnabled(true);
    parserSettings.setHeaderExtractionEnabled(true);
    ConcurrentRowProcessor concurrentRowProcessor = new ConcurrentRowProcessor(beanListProcessor());
    parserSettings.setProcessor(concurrentRowProcessor);
    return parserSettings;
}
Also used : CsvParserSettings(com.univocity.parsers.csv.CsvParserSettings) ConcurrentRowProcessor(com.univocity.parsers.common.processor.ConcurrentRowProcessor)

Aggregations

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