sparrow 1.3.0
Loading...
Searching...
No Matches
json_array.hpp
Go to the documentation of this file.
1// Copyright 2024 Man Group Operations Limited
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#include <optional>
18#include <string_view>
19#include <vector>
20
26
27namespace sparrow
28{
29
30 using json_extension = simple_extension<"arrow.json">;
52 std::int32_t,
54
75 std::int64_t,
77
100
101 namespace detail
102 {
103 template <>
105 {
106 [[nodiscard]] static constexpr sparrow::data_type get()
107 {
109 }
110 };
111
112 template <>
114 {
115 [[nodiscard]] static constexpr sparrow::data_type get()
116 {
118 }
119 };
120
121 template <>
123 {
124 [[nodiscard]] static constexpr sparrow::data_type get()
125 {
127 }
128 };
129 }
130}
variable_size_binary_array_impl< arrow_traits< std::string >::value_type, arrow_traits< std::string >::const_reference, std::int32_t, json_extension > json_array
JSON array with 32-bit offsets.
variable_size_binary_view_array_impl< arrow_traits< std::string >::value_type, arrow_traits< std::string >::const_reference, json_extension > json_view_array
JSON array with view-based storage.
simple_extension<"arrow.json"> json_extension
data_type
Runtime identifier of arrow data types, usually associated with raw bytes with the associated value.
variable_size_binary_array_impl< arrow_traits< std::string >::value_type, arrow_traits< std::string >::const_reference, std::int64_t, json_extension > big_json_array
JSON array with 64-bit offsets.
Provides compile-time information about Arrow data types.
Metafunction for retrieving the data_type of a typed array.