Search in sources :

Example 1 with MappedBoundStatementPrinter

use of com.datastax.oss.dsbulk.workflow.commons.format.statement.MappedBoundStatementPrinter in project dsbulk by datastax.

the class LogSettings method newLogManager.

public LogManager newLogManager(CqlSession session, boolean trackPositions) {
    StatementFormatter statementFormatter = StatementFormatter.builder().withMaxQueryStringLength(maxQueryStringLength).withMaxBoundValueLength(maxBoundValueLength).withMaxBoundValues(maxBoundValues).withMaxInnerStatements(maxInnerStatements).addStatementPrinters(new MappedBoundStatementPrinter()).build();
    RowFormatter rowFormatter = new RowFormatter(maxResultSetValueLength, maxResultSetValues);
    return new LogManager(session, operationDirectory, errorThreshold, queryWarningsThreshold, trackPositions, statementFormatter, level, rowFormatter);
}
Also used : RowFormatter(com.datastax.oss.dsbulk.format.row.RowFormatter) StatementFormatter(com.datastax.oss.dsbulk.format.statement.StatementFormatter) MappedBoundStatementPrinter(com.datastax.oss.dsbulk.workflow.commons.format.statement.MappedBoundStatementPrinter) LogManager(com.datastax.oss.dsbulk.workflow.commons.log.LogManager)

Aggregations

RowFormatter (com.datastax.oss.dsbulk.format.row.RowFormatter)1 StatementFormatter (com.datastax.oss.dsbulk.format.statement.StatementFormatter)1 MappedBoundStatementPrinter (com.datastax.oss.dsbulk.workflow.commons.format.statement.MappedBoundStatementPrinter)1 LogManager (com.datastax.oss.dsbulk.workflow.commons.log.LogManager)1