Interface Row

All Known Implementing Classes:
Row.Attributed, Row.Calculation, Row.Tall, Row.Wide

public sealed interface Row permits Row.Wide, Row.Tall, Row.Calculation, Row.Attributed
One assembled row emitted by RowAssembler into a RowSink. Each variant matches a ResultWriterOptions.ResultFormat.

Multi-engine queries tag each row with the histprov id of its engine through engineId(); single-engine rows return null there.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Wraps a row to stamp a non-null engineId on it for multi-engine attribution; every other accessor delegates to the wrapped row.
    static final record 
    Calculation row: one aggregate result per row, with the timestamp of the start of the window it finalized over.
    static final record 
    Tall-format row: one path, value and quality per row, with the aggregate that produced the value or null for a raw sample.
    static final record 
    Wide-format row: one timestamp, with parallel value and quality arrays per column.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable String
    Returns the histprov id of the engine that produced this row, set by EngineAttributingSink on multi-engine queries; null on single-engine queries.
    Returns the per-cell qualities; never null or empty.
    long
    Returns the row's timestamp in epoch milliseconds.
  • Method Details

    • timestamp

      long timestamp()
      Returns the row's timestamp in epoch milliseconds. For Row.Calculation it is the start of the window the aggregate finalized over.
    • qualities

      QualityCode[] qualities()
      Returns the per-cell qualities; never null or empty.
    • engineId

      default @Nullable String engineId()
      Returns the histprov id of the engine that produced this row, set by EngineAttributingSink on multi-engine queries; null on single-engine queries.