Medial Code Documentation
Loading...
Searching...
No Matches
External
xgboost
src
data
arrow-cdi.h
1
/* Licensed to the Apache Software Foundation (ASF) under one
2
* or more contributor license agreements. See the NOTICE file
3
* distributed with this work for additional information
4
* regarding copyright ownership. The ASF licenses this file
5
* to you under the Apache License, Version 2.0 (the
6
* "License"); you may not use this file except in compliance
7
* with the License. You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing,
12
* software distributed under the License is distributed on an
13
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
* KIND, either express or implied. See the License for the
15
* specific language governing permissions and limitations
16
* under the License.
17
*/
18
19
#pragma once
20
21
#include <cstdint>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
#define ARROW_FLAG_DICTIONARY_ORDERED 1
28
#define ARROW_FLAG_NULLABLE 2
29
#define ARROW_FLAG_MAP_KEYS_SORTED 4
30
31
struct
ArrowSchema
{
32
// Array type description
33
const
char
* format;
34
const
char
* name;
35
const
char
* metadata;
36
int64_t flags;
37
int64_t n_children;
38
struct
ArrowSchema
** children;
39
struct
ArrowSchema
* dictionary;
40
41
// Release callback
42
void (*
release
)(
struct
ArrowSchema
*);
43
// Opaque producer-specific data
44
void
* private_data;
45
};
46
47
struct
ArrowArray
{
48
// Array data description
49
int64_t length;
50
int64_t null_count;
51
int64_t offset;
52
int64_t n_buffers;
53
int64_t n_children;
54
const
void
** buffers;
55
struct
ArrowArray
** children;
56
struct
ArrowArray
* dictionary;
57
58
// Release callback
59
void (*
release
)(
struct
ArrowArray
*);
60
// Opaque producer-specific data
61
void
* private_data;
62
};
63
64
#ifdef __cplusplus
65
}
66
#endif
release
-artifacts
ArrowArray
Definition
arrow-cdi.h:47
ArrowSchema
Definition
arrow-cdi.h:31
Generated on Mon Sep 15 2025 12:12:20 for Medial Code Documentation by
1.9.8