File indexing completed on 2025-08-28 08:26:59
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #pragma once
0021
0022 #include <memory>
0023 #include <string>
0024 #include <string_view>
0025
0026 #include "arrow/status.h"
0027 #include "arrow/type_fwd.h"
0028 #include "arrow/util/visibility.h"
0029
0030 namespace arrow {
0031
0032 class Array;
0033 class DataType;
0034
0035 namespace ipc {
0036 namespace internal {
0037 namespace json {
0038
0039 ARROW_EXPORT
0040 Result<std::shared_ptr<Array>> ArrayFromJSON(const std::shared_ptr<DataType>&,
0041 const std::string& json);
0042
0043 ARROW_EXPORT
0044 Result<std::shared_ptr<Array>> ArrayFromJSON(const std::shared_ptr<DataType>&,
0045 std::string_view json);
0046
0047 ARROW_EXPORT
0048 Result<std::shared_ptr<Array>> ArrayFromJSON(const std::shared_ptr<DataType>&,
0049 const char* json);
0050
0051 ARROW_EXPORT
0052 Status ChunkedArrayFromJSON(const std::shared_ptr<DataType>& type,
0053 const std::vector<std::string>& json_strings,
0054 std::shared_ptr<ChunkedArray>* out);
0055
0056 ARROW_EXPORT
0057 Status DictArrayFromJSON(const std::shared_ptr<DataType>&, std::string_view indices_json,
0058 std::string_view dictionary_json, std::shared_ptr<Array>* out);
0059
0060 ARROW_EXPORT
0061 Status ScalarFromJSON(const std::shared_ptr<DataType>&, std::string_view json,
0062 std::shared_ptr<Scalar>* out);
0063
0064 ARROW_EXPORT
0065 Status DictScalarFromJSON(const std::shared_ptr<DataType>&, std::string_view index_json,
0066 std::string_view dictionary_json, std::shared_ptr<Scalar>* out);
0067
0068 }
0069 }
0070 }
0071 }