sparrow-ipc 0.2.0
Loading...
Searching...
No Matches
deserialize_interval_array.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <sparrow/arrow_interface/arrow_array_schema_proxy.hpp>
4#include <sparrow/interval_array.hpp>
5
6#include "Message_generated.h"
8
9namespace sparrow_ipc
10{
11 template <typename T>
12 [[nodiscard]] sparrow::interval_array<T> deserialize_non_owning_interval_array(
13 const org::apache::arrow::flatbuf::RecordBatch& record_batch,
14 std::span<const uint8_t> body,
15 std::string_view name,
16 const std::optional<std::vector<sparrow::metadata_pair>>& metadata,
17 bool nullable,
18 size_t& buffer_index
19 )
20 {
22 record_batch,
23 body,
24 name,
25 metadata,
26 nullable,
27 buffer_index
28 );
29 }
30}
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.
sparrow::interval_array< T > deserialize_non_owning_interval_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)