]>
Commit | Line | Data |
---|---|---|
1d09f67e TL |
1 | /* |
2 | * Licensed to the Apache Software Foundation (ASF) under one | |
3 | * or more contributor license agreements. See the NOTICE file | |
4 | * distributed with this work for additional information | |
5 | * regarding copyright ownership. The ASF licenses this file | |
6 | * to you under the Apache License, Version 2.0 (the | |
7 | * "License"); you may not use this file except in compliance | |
8 | * with the License. You may obtain a copy of the License at | |
9 | * | |
10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
11 | * | |
12 | * Unless required by applicable law or agreed to in writing, | |
13 | * software distributed under the License is distributed on an | |
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
15 | * KIND, either express or implied. See the License for the | |
16 | * specific language governing permissions and limitations | |
17 | * under the License. | |
18 | */ | |
19 | ||
20 | #pragma once | |
21 | ||
22 | #include <arrow/api.h> | |
23 | #include <arrow/csv/api.h> | |
24 | #include <arrow/ipc/api.h> | |
25 | #include <arrow/ipc/feather.h> | |
26 | #include <arrow/json/api.h> | |
27 | ||
28 | #include <arrow-glib/reader.h> | |
29 | ||
30 | GArrowRecordBatchReader *garrow_record_batch_reader_new_raw(std::shared_ptr<arrow::ipc::RecordBatchReader> *arrow_reader); | |
31 | std::shared_ptr<arrow::ipc::RecordBatchReader> garrow_record_batch_reader_get_raw(GArrowRecordBatchReader *reader); | |
32 | ||
33 | GArrowTableBatchReader *garrow_table_batch_reader_new_raw(std::shared_ptr<arrow::TableBatchReader> *arrow_reader); | |
34 | ||
35 | GArrowRecordBatchStreamReader *garrow_record_batch_stream_reader_new_raw(std::shared_ptr<arrow::ipc::RecordBatchStreamReader> *arrow_reader); | |
36 | ||
37 | GArrowRecordBatchFileReader * | |
38 | garrow_record_batch_file_reader_new_raw(std::shared_ptr<arrow::ipc::RecordBatchFileReader> *arrow_reader); | |
39 | std::shared_ptr<arrow::ipc::RecordBatchFileReader> garrow_record_batch_file_reader_get_raw(GArrowRecordBatchFileReader *reader); | |
40 | ||
41 | GArrowFeatherFileReader * | |
42 | garrow_feather_file_reader_new_raw(std::shared_ptr<arrow::ipc::feather::Reader> *arrow_reader); | |
43 | std::shared_ptr<arrow::ipc::feather::Reader> | |
44 | garrow_feather_file_reader_get_raw(GArrowFeatherFileReader *reader); | |
45 | ||
46 | GArrowCSVReader * | |
47 | garrow_csv_reader_new_raw(std::shared_ptr<arrow::csv::TableReader> *arrow_reader, | |
48 | GArrowInputStream *input); | |
49 | std::shared_ptr<arrow::csv::TableReader> | |
50 | garrow_csv_reader_get_raw(GArrowCSVReader *reader); | |
51 | ||
52 | GArrowJSONReader * | |
53 | garrow_json_reader_new_raw(std::shared_ptr<arrow::json::TableReader> *arrow_reader, | |
54 | GArrowInputStream *input); | |
55 | std::shared_ptr<arrow::json::TableReader> | |
56 | garrow_json_reader_get_raw(GArrowJSONReader *reader); |