sparrow-ipc 0.3.0
Loading...
Searching...
No Matches
deserialize_utils.hpp File Reference
#include <cstdint>
#include <optional>
#include <span>
#include <unordered_set>
#include <utility>
#include <variant>
#include <sparrow/buffer/buffer.hpp>
#include <sparrow/c_interface.hpp>
#include "Message_generated.h"
#include "Schema_generated.h"
Include dependency graph for deserialize_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sparrow_ipc
 
namespace  sparrow_ipc::utils
 

Functions

std::pair< std::uint8_t *, int64_t > sparrow_ipc::utils::get_bitmap_pointer_and_null_count (std::span< const uint8_t > validity_buffer_span, const int64_t length)
 Extracts bitmap pointer and null count from a validity buffer span.
 
std::span< const uint8_t > sparrow_ipc::utils::get_buffer (const org::apache::arrow::flatbuf::RecordBatch &record_batch, std::span< const uint8_t > body, size_t &buffer_index)
 Extracts a buffer from a RecordBatch's body.
 
std::variant< sparrow::buffer< std::uint8_t >, std::span< const std::uint8_t > > sparrow_ipc::utils::get_decompressed_buffer (std::span< const uint8_t > buffer_span, const org::apache::arrow::flatbuf::BodyCompression *compression)
 Retrieves a decompressed buffer or a view of the original buffer.
 
std::optional< std::unordered_set< sparrow::ArrowFlag > > sparrow_ipc::utils::get_sparrow_flags (const org::apache::arrow::flatbuf::Field &field)
 Extract sparrow flags from FlatBuffers Field.
 
template<typename T>
std::string sparrow_ipc::utils::get_fb_name (const T *obj, const std::string &default_val="")
 Safely extracts a string from a FlatBuffers object that has a name() method.