]>
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-glib/array.h> | |
23 | ||
24 | G_BEGIN_DECLS | |
25 | ||
26 | #define GARROW_TYPE_CHUNKED_ARRAY (garrow_chunked_array_get_type()) | |
27 | G_DECLARE_DERIVABLE_TYPE(GArrowChunkedArray, | |
28 | garrow_chunked_array, | |
29 | GARROW, | |
30 | CHUNKED_ARRAY, | |
31 | GObject) | |
32 | struct _GArrowChunkedArrayClass | |
33 | { | |
34 | GObjectClass parent_class; | |
35 | }; | |
36 | ||
37 | GArrowChunkedArray *garrow_chunked_array_new(GList *chunks); | |
38 | ||
39 | gboolean garrow_chunked_array_equal(GArrowChunkedArray *chunked_array, | |
40 | GArrowChunkedArray *other_chunked_array); | |
41 | ||
42 | GArrowDataType * | |
43 | garrow_chunked_array_get_value_data_type(GArrowChunkedArray *chunked_array); | |
44 | GArrowType | |
45 | garrow_chunked_array_get_value_type(GArrowChunkedArray *chunked_array); | |
46 | ||
47 | GARROW_DEPRECATED_IN_0_15_FOR(garrow_chunked_array_get_n_rows) | |
48 | guint64 garrow_chunked_array_get_length (GArrowChunkedArray *chunked_array); | |
49 | GARROW_AVAILABLE_IN_0_15 | |
50 | guint64 garrow_chunked_array_get_n_rows (GArrowChunkedArray *chunked_array); | |
51 | guint64 garrow_chunked_array_get_n_nulls(GArrowChunkedArray *chunked_array); | |
52 | guint garrow_chunked_array_get_n_chunks (GArrowChunkedArray *chunked_array); | |
53 | ||
54 | GArrowArray *garrow_chunked_array_get_chunk(GArrowChunkedArray *chunked_array, | |
55 | guint i); | |
56 | GList *garrow_chunked_array_get_chunks(GArrowChunkedArray *chunked_array); | |
57 | GArrowChunkedArray *garrow_chunked_array_slice(GArrowChunkedArray *chunked_array, | |
58 | guint64 offset, | |
59 | guint64 length); | |
60 | gchar *garrow_chunked_array_to_string(GArrowChunkedArray *chunked_array, | |
61 | GError **error); | |
62 | GARROW_AVAILABLE_IN_4_0 | |
63 | GArrowArray *garrow_chunked_array_combine(GArrowChunkedArray *chunked_array, | |
64 | GError **error); | |
65 | ||
66 | G_END_DECLS |