Class RecordFilterEvent

java.lang.Object
jdk.jfr.Event
dev.hardwood.jfr.RecordFilterEvent

public class RecordFilterEvent extends Event

JFR event emitted when records are filtered by record-level predicate evaluation.

One event per file a read touched, committed when the read moves on to the next file and when the reader is closed — so a reader that is never closed reports nothing for the file it ended on.

Record-level filtering is what remains after row-group statistics and the Column Index have narrowed the read, so totalRecords counts the records the predicate actually decided on, not the rows in the file: rows in pruned row groups and pages never reach it, and a read that stops early — head(N), or a caller that stops consuming and closes — counts only as far as it got.

The counts are the predicate's selectivity rather than the matcher's workload: a row group whose statistics prove every one of its rows matches contributes them as evaluated and kept, though none was tested individually.

  • Field Details

    • file

      public String file
    • totalRecords

      public long totalRecords
    • recordsKept

      public long recordsKept
    • recordsSkipped

      public long recordsSkipped
  • Constructor Details

    • RecordFilterEvent

      public RecordFilterEvent()