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