sparrow 1.3.0
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
18
19
20#ifndef ARROW_C_STREAM_INTERFACE
21# define ARROW_C_STREAM_INTERFACE
22extern "C"
23{
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
36 };
37} // extern "C"
38
39#endif // ARROW_C_STREAM_INTERFACE
int(* get_next)(struct ArrowArrayStream *, struct ArrowArray *out)
void(* release)(struct ArrowArrayStream *)
int(* get_schema)(struct ArrowArrayStream *, struct ArrowSchema *out)