-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-7913: [C++][Python][R] C++ implementation of C data protocol #6026
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,7 @@ r-covr | |
| r-hms | ||
| r-lubridate | ||
| r-rcmdcheck | ||
| r-reticulate | ||
| r-rmarkdown | ||
| r-testthat | ||
| r-tibble | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| add_arrow_test(bridge_test PREFIX "arrow-c") | ||
|
|
||
| add_arrow_benchmark(bridge_benchmark) | ||
|
|
||
| arrow_install_all_headers("arrow/c") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <stdint.h> | ||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
||
| #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; | ||
jacques-n marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 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; | ||
| }; | ||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
Uh oh!
There was an error while loading. Please reload this page.