OptionalviewHandler: QwpResultBatchViewHandlerInternalWhether the application cancelled before the timeout.
InternalWhether the server streams this query under credit.
InternalWhether the timeout has expired; results are withheld.
InternalWhether the consumer has retired while the wire still drains.
InternalWhether the server's terminal response has been received.
InternalInternalWhether a result-view callback is running now.
InternalWhether results are withheld from the consumer: the timeout expired or the application cancelled.
InternalStarts the timeout with what remains of its budget.
InternalBounds how long an expired query may take to end.
Waits for completion without changing the query lifecycle. A finite wait returns false on expiry; the query remains active until it completes, is cancelled explicitly, or its configured query deadline expires.
Cancels the query. No further batch is delivered: batches already queued
are dropped, and the server is sent CANCEL together with the
flow-control credit those batches held. The outcome follows the server's
terminal response: a cancellation rejects iteration and completion
with a QwpEgressQueryError whose status is QWP_STATUS.CANCELLED,
a statement that completed anyway succeeds, and so does a result that
ended with nothing withheld.
If the server does not end the query within cancelDrainTimeoutMs,
iteration and completion reject with
QwpEgressQueryCancelTimeoutError. A reconnecting session replaces
the connection; a session opened with reconnect: false fails instead.
The returned promise settles once CANCEL has been sent, or once a
reconnect has taken it over: it then follows the replayed request, and a
later failure reaches the query and the session. A query sends at most
one CANCEL.
InternalCalled when the application cancels, which outranks a timeout expiring later. Results are withheld exactly as they are at the timeout, and the credit returned is what the dropped batches held.
InternalThe error reporting an application cancel for a result whose stream ended after rows had been withheld: the server finished before it acted on the CANCEL, but the consumer did not receive the whole result.
InternalClaims this request's single CANCEL. False once one has been sent: the server ignores a second, so it would only cost a frame.
InternalRecords a batch dropped unread because the consumer has retired or results are withheld, and returns the credit to restore for it.
InternalCalled when the timeout expires. No further batch reaches the consumer: queued ones are dropped. Returns the flow-control credit they held, which the server needs back to stream on toward its terminal.
InternalInternalPreserves batch/callback order before a wire query error.
Whether the query has reached any terminal outcome.
InternalPublishes a batch after reserveMaterializedBatch().
InternalQueues a decoded view after reserveViewBatch().
InternalReleases a reservation when decoding fails.
InternalReleases a reservation when zero-copy decoding fails.
InternalWaits for one decoded materialized-batch slot.
InternalWaits for one reusable zero-copy view slot.
InternalInternalDiscards queued results and retires the consumer immediately.
InternalWaits until all callback-scoped views have been released.
One QWP query/statement and its stream of materialized result batches.