@Override public void accept(SourceRecord record) { if (record.value() == null) { tombstones.incrementAndGet(); } else { Operation op = Envelope.operationFor(record); if (op != null) { statsByOperation.computeIfAbsent(op, key -> new AtomicLong()).incrementAndGet(); } } }
Operation op = Envelope.operationFor(record); if (op != null) { switch (op) {