Class ::nsmcp::BufferedResultReader

::nsmcp::BufferedResultReader[i] create ... \
           [ -buffer (default "") ] \
           [ -channel:required channel:required ] \
           [ -index (default "0") ] \
           [ -limit:required limit:required ] \
           [ -maxBytes:integer (default "2097152") ] \
           [ -offset:required offset:required ] \
           [ -readBytes (default "0") ] \
           [ -readCalls (default "0") ] \
           [ -readMicroseconds (default "0") ]

Defined in /usr/local/ns/tcl/nsmcp/log-01-scanner.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nsmcp::Object[i]

Methods (to be applied on instances)

  • next (scripted, public)

     <instance of nsmcp::BufferedResultReader[i]> next

    Read one complete JSONL record inside the published snapshot. Keep unused channel bytes for the next record. Reject oversized or incomplete records without reading beyond the fixed published limit.

    Returns:
    A dictionary with start, end and raw, or empty at exhaustion.

    Testcases:
    No testcase defined.
  • statistics (scripted, public)

     <instance of nsmcp::BufferedResultReader[i]> statistics

    Report channel work for this result page. Buffered bytes can include the next record in this published snapshot; they are not a count of physical disk bytes or returned JSON bytes.

    Returns:
    Read time in microseconds and channel byte/call counts.

    Testcases:
    No testcase defined.