Class Status

java.lang.Object
io.sbk.api.Status

public final class Status extends Object
Holder for per-operation read/write status used by the SBK harness.

This mutable value object is reused by the benchmark helpers to return timing and size information for a single read or write operation. Fields are public for lightweight access from hot paths in the harness. Typical lifecycle for a Status instance in the harness:

  1. Set startTime before beginning an operation.
  2. Set endTime when the operation completes (or equals startTime for synchronous operations).
  3. Set records and bytes to indicate how many records and bytes were processed.

Note: this class intentionally exposes mutable public fields to avoid allocation and accessor overhead in the hot benchmarking loop. Do not share a single Status instance across concurrent operations.

  • Field Details

    • startTime

      public long startTime
    • endTime

      public long endTime
    • records

      public int records
    • bytes

      public int bytes
  • Constructor Details

    • Status

      public Status()