Turi Create
4.0
|
#include <core/storage/query_engine/execution/query_context.hpp>
Public Member Functions | |
std::shared_ptr< const sframe_rows > | get_next (size_t input_number) |
void | skip_next (size_t input_number) |
std::shared_ptr< sframe_rows > | get_output_buffer () |
void | emit (const std::shared_ptr< sframe_rows > &rows) |
bool | should_skip () |
size_t | block_size () const |
This is the object passed to the coroutine which allows the coroutine to read and write values. The expected usage pattern of the coroutine is:
Definition at line 37 of file query_context.hpp.
|
inline |
The commmunication block size.
Definition at line 78 of file query_context.hpp.
void turi::query_eval::query_context::emit | ( | const std::shared_ptr< sframe_rows > & | rows | ) |
Emits a collection of rows. The number of rows emitted MUST be the same as block_size(), except for the very last block of rows. Should yield immediately after emitting a block.
std::shared_ptr<const sframe_rows> turi::query_eval::query_context::get_next | ( | size_t | input_number | ) |
Requests for the next block for the given input.
std::shared_ptr<sframe_rows> turi::query_eval::query_context::get_output_buffer | ( | ) |
Returns a pointer to an output buffer.
bool turi::query_eval::query_context::should_skip | ( | ) |
Returns true if the operator should try to skip a block.
void turi::query_eval::query_context::skip_next | ( | size_t | input_number | ) |
Requests for the next block for the given input to the skipped.