public Query setMaxRows(final int maxRows) {
        return addCustomizer(StatementCustomizers.maxRows(maxRows));
    }
Specify the maximum number of rows the query is to return. This uses the underlying JDBC
{@link Statement#setMaxRows(int)}}.

@param maxRows maximum number of rows to return

@return modified query
core/src/main/java/org/jdbi/v3/core/statement/Query.java