sparrow
2.4.0
C++20 idiomatic APIs for the Apache Arrow Columnar Format
Toggle main menu visibility
Loading...
Searching...
No Matches
arrow_array_stream.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
33
34
#pragma once
35
36
#include "
sparrow/arrow_interface/arrow_array_stream/private_data.hpp
"
37
#include "
sparrow/c_interface.hpp
"
38
#include "
sparrow/c_stream_interface.hpp
"
39
#include "
sparrow/config/config.hpp
"
40
#include "
sparrow/utils/contracts.hpp
"
41
42
namespace
sparrow
43
{
58
SPARROW_API
void
release_arrow_array_stream
(
ArrowArrayStream
* stream);
59
80
SPARROW_API
int
get_schema_from_arrow_array_stream
(
ArrowArrayStream
* stream,
ArrowSchema
* out);
81
105
SPARROW_API
int
get_next_from_arrow_array_stream
(
ArrowArrayStream
* stream,
ArrowArray
* out);
106
127
SPARROW_API
const
char
*
get_last_error_from_arrow_array_stream
(
ArrowArrayStream
* stream);
128
129
SPARROW_API
void
fill_arrow_array_stream
(
ArrowArrayStream
& stream);
130
150
SPARROW_API
ArrowArrayStream
move_array_stream
(
ArrowArrayStream
&& source);
151
171
SPARROW_API
ArrowArrayStream
move_array_stream
(
ArrowArrayStream
& source);
172
}
private_data.hpp
c_interface.hpp
c_stream_interface.hpp
config.hpp
SPARROW_API
#define SPARROW_API
Definition
config.hpp:38
contracts.hpp
sparrow
Definition
array.hpp:21
sparrow::get_next_from_arrow_array_stream
SPARROW_API int get_next_from_arrow_array_stream(ArrowArrayStream *stream, ArrowArray *out)
Get next array callback for ArrowArrayStream.
sparrow::move_array_stream
SPARROW_API ArrowArrayStream move_array_stream(ArrowArrayStream &&source)
Move an ArrowArrayStream by transferring ownership of its resources.
sparrow::release_arrow_array_stream
SPARROW_API void release_arrow_array_stream(ArrowArrayStream *stream)
Release callback for ArrowArrayStream.
sparrow::fill_arrow_array_stream
SPARROW_API void fill_arrow_array_stream(ArrowArrayStream &stream)
sparrow::get_schema_from_arrow_array_stream
SPARROW_API int get_schema_from_arrow_array_stream(ArrowArrayStream *stream, ArrowSchema *out)
Get schema callback for ArrowArrayStream.
sparrow::get_last_error_from_arrow_array_stream
SPARROW_API const char * get_last_error_from_arrow_array_stream(ArrowArrayStream *stream)
Get last error callback for ArrowArrayStream.
ArrowArrayStream
Definition
c_stream_interface.hpp:25
ArrowArray
Definition
c_interface.hpp:43
ArrowSchema
Definition
c_interface.hpp:26
sparrow
arrow_interface
arrow_array_stream.hpp
Generated by
1.17.0