sparrow-ipc 0.2.0
Loading...
Searching...
No Matches
sparrow_ipc::detail Namespace Reference

Functions

template<template< typename... > class ArrayType, typename T>
ArrayType< T > deserialize_non_owning_simple_array (const org::apache::arrow::flatbuf::RecordBatch &record_batch, std::span< const uint8_t > body, std::string_view name, const std::optional< std::vector< sparrow::metadata_pair > > &metadata, bool nullable, size_t &buffer_index, std::optional< std::string > format_override=std::nullopt)
 Generic implementation for deserializing non-owning arrays with simple layout.
 

Function Documentation

◆ deserialize_non_owning_simple_array()

template<template< typename... > class ArrayType, typename T>
ArrayType< T > sparrow_ipc::detail::deserialize_non_owning_simple_array ( const org::apache::arrow::flatbuf::RecordBatch & record_batch,
std::span< const uint8_t > body,
std::string_view name,
const std::optional< std::vector< sparrow::metadata_pair > > & metadata,
bool nullable,
size_t & buffer_index,
std::optional< std::string > format_override = std::nullopt )
nodiscard

Generic implementation for deserializing non-owning arrays with simple layout.

This function provides the common deserialization logic for array types that have a validity buffer and a single data buffer (e.g., primitive_array, interval_array).

Template Parameters
ArrayTypeThe array type template (e.g., sparrow::primitive_array)
TThe element type
Parameters
record_batchThe FlatBuffer RecordBatch containing metadata
bodyThe raw buffer data
nameThe array column name
metadataOptional metadata pairs
nullableWhether the array is nullable
buffer_indexThe current buffer index (incremented by this function)
Returns
The deserialized array of type ArrayType<T>

Definition at line 38 of file deserialize_array_impl.hpp.

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