sparrow-ipc 0.2.0
Loading...
Searching...
No Matches
utils Namespace Reference

Functions

sp::record_batch create_random_record_batch (size_t num_rows)
 Helper function to create a record batch with the same schema but random values All batches have: int32 column, float column, bool column, and string column.
 
bool verify_batches_match (const std::vector< sp::record_batch > &original_batches, const std::vector< sp::record_batch > &deserialized_batches)
 Verify that two sets of record batches are identical Returns true if all batches match, false otherwise.
 

Function Documentation

◆ create_random_record_batch()

sp::record_batch utils::create_random_record_batch ( size_t num_rows)

Helper function to create a record batch with the same schema but random values All batches have: int32 column, float column, bool column, and string column.

Definition at line 32 of file write_and_read_streams.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_batches_match()

bool utils::verify_batches_match ( const std::vector< sp::record_batch > & original_batches,
const std::vector< sp::record_batch > & deserialized_batches )

Verify that two sets of record batches are identical Returns true if all batches match, false otherwise.

Definition at line 95 of file write_and_read_streams.cpp.

Here is the caller graph for this function: