-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expand file tree
/
Copy pathArrow.h
More file actions
57 lines (49 loc) · 1.52 KB
/
Copy pathArrow.h
File metadata and controls
57 lines (49 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Arrow C Data Interface structure definitions.
//
// These free-standing definitions are published by the Apache Arrow project
// for copying into third-party projects, under the Apache License 2.0:
// https://arrow.apache.org/docs/format/CDataInterface.html#structure-definitions
//
// Copyright The Apache Software Foundation.
// SPDX-License-Identifier: Apache-2.0
//
// Per the specification, the ARROW_C_DATA_INTERFACE guard below is kept exactly
// as-is to avoid duplicate definitions when multiple projects vendor these
// declarations.
#include <stdint.h>
#include <assert.h>
#ifndef ARROW_C_DATA_INTERFACE
#define ARROW_C_DATA_INTERFACE
#define ARROW_FLAG_DICTIONARY_ORDERED 1
#define ARROW_FLAG_NULLABLE 2
#define ARROW_FLAG_MAP_KEYS_SORTED 4
struct ArrowSchema {
// Array type description
const char *format;
const char *name;
const char *metadata;
int64_t flags;
int64_t n_children;
struct ArrowSchema **children;
struct ArrowSchema *dictionary;
// Release callback
void (*release)(struct ArrowSchema *);
// Opaque producer-specific data
void *private_data;
};
struct ArrowArray {
// Array data description
int64_t length;
int64_t null_count;
int64_t offset;
int64_t n_buffers;
int64_t n_children;
const void **buffers;
struct ArrowArray **children;
struct ArrowArray *dictionary;
// Release callback
void (*release)(struct ArrowArray *);
// Opaque producer-specific data
void *private_data;
};
#endif // ARROW_C_DATA_INTERFACE