sparrow
2.2.0
C++20 idiomatic APIs for the Apache Arrow Columnar Format
Loading...
Searching...
No Matches
c_stream_interface.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 "
sparrow/c_interface.hpp
"
18
19
20
#ifndef ARROW_C_STREAM_INTERFACE
21
# define ARROW_C_STREAM_INTERFACE
22
extern
"C"
23
{
24
struct
ArrowArrayStream
25
{
26
// Callbacks providing stream functionality
27
int (*
get_schema
)(
struct
ArrowArrayStream
*,
struct
ArrowSchema
* out);
28
int (*
get_next
)(
struct
ArrowArrayStream
*,
struct
ArrowArray
* out);
29
const
char
* (*get_last_error)(
struct
ArrowArrayStream
*);
30
31
// Release callback
32
void (*
release
)(
struct
ArrowArrayStream
*);
33
34
// Opaque producer-specific data
35
void
*
private_data
;
36
};
37
}
// extern "C"
38
39
#endif
// ARROW_C_STREAM_INTERFACE
c_interface.hpp
ArrowArrayStream
Definition
c_stream_interface.hpp:25
ArrowArrayStream::get_next
int(* get_next)(struct ArrowArrayStream *, struct ArrowArray *out)
Definition
c_stream_interface.hpp:28
ArrowArrayStream::private_data
void * private_data
Definition
c_stream_interface.hpp:35
ArrowArrayStream::release
void(* release)(struct ArrowArrayStream *)
Definition
c_stream_interface.hpp:32
ArrowArrayStream::get_schema
int(* get_schema)(struct ArrowArrayStream *, struct ArrowSchema *out)
Definition
c_stream_interface.hpp:27
ArrowArray
Definition
c_interface.hpp:43
ArrowSchema
Definition
c_interface.hpp:26
sparrow
c_stream_interface.hpp
Generated by
1.13.2