We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
в тредах и лямбдах можно использовать только final, замыкания
final int[] i = {0}; csvParser.iterator().forEachRemaining(record -> { final int numOfRecord = i[0]++; Optional<ProducerRecord<K, SpecificRecord>> prec = createProducerRecord(record, numOfRecord); if (prec.isPresent()) { logger.trace("Sending record: {}", prec.get()); producer.send(prec.get()); } if (i[0] % 100000 == 1) { logger.info("File {} processed {} rows by {} milliseconds.", filename, i[0], System.currentTimeMillis() - start); } });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
в тредах и лямбдах можно использовать только final, замыкания
final int[] i = {0};
csvParser.iterator().forEachRemaining(record -> {
final int numOfRecord = i[0]++;
Optional<ProducerRecord<K, SpecificRecord>> prec = createProducerRecord(record, numOfRecord);
if (prec.isPresent()) {
logger.trace("Sending record: {}", prec.get());
producer.send(prec.get());
}
if (i[0] % 100000 == 1) {
logger.info("File {} processed {} rows by {} milliseconds.", filename, i[0], System.currentTimeMillis() - start);
}
});
The text was updated successfully, but these errors were encountered: