Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
batch.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: Apache-2.0 */
2/* SPDX-FileCopyrightText: Copyright The Lance Authors */
3
9#ifndef LANCE_BATCH_H
10#define LANCE_BATCH_H
11
12#include <stdint.h>
13
14#include "lance/attributes.h"
15#include "lance/arrow_abi.h"
16#include "lance/fwd.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/* ─── Batch (Arrow C Data Interface) ─── */
23
29 const LanceBatch* batch,
30 struct ArrowArray* out_array,
31 struct ArrowSchema* out_schema
32);
33
48 struct ArrowArray* array,
49 const struct ArrowSchema* schema,
50 LanceBatch** out
51);
52
55
56#ifdef __cplusplus
57} /* extern "C" */
58#endif
59
60#endif /* LANCE_BATCH_H */
Arrow C Data and Stream Interface declarations used by this API.
Declaration attributes shared by every public header.
#define LANCE_API
Definition attributes.h:27
LANCE_API void lance_batch_free(LanceBatch *batch)
LANCE_API int32_t lance_batch_to_arrow(const LanceBatch *batch, struct ArrowArray *out_array, struct ArrowSchema *out_schema)
LANCE_API int32_t lance_batch_from_arrow(struct ArrowArray *array, const struct ArrowSchema *schema, LanceBatch **out)
Opaque native handle declarations shared by the domain headers.
struct LanceBatch LanceBatch
Definition fwd.h:30