packed_types.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
8 #include <cudf/table/table.hpp>
9 #include <cudf/types.hpp>
10 #include <cudf/utilities/export.hpp>
11 
12 #include <rmm/device_buffer.hpp>
13 
14 #include <memory>
15 #include <vector>
16 
17 namespace CUDF_EXPORT cudf {
18 
34  : metadata(std::make_unique<std::vector<uint8_t>>()),
35  gpu_data(std::make_unique<rmm::device_buffer>())
36  {
37  }
38 
45  packed_columns(std::unique_ptr<std::vector<uint8_t>>&& md,
46  std::unique_ptr<rmm::device_buffer>&& gd)
47  : metadata(std::move(md)), gpu_data(std::move(gd))
48  {
49  }
50 
51  std::unique_ptr<std::vector<uint8_t>> metadata;
52  std::unique_ptr<rmm::device_buffer> gpu_data;
53 };
54 
66 struct packed_table {
69 };
70 
72 } // namespace CUDF_EXPORT cudf
A set of cudf::column_view's of the same size.
Definition: table_view.hpp:189
cuDF interfaces
Definition: host_udf.hpp:26
Column data in a serialized format.
packed_columns(std::unique_ptr< std::vector< uint8_t >> &&md, std::unique_ptr< rmm::device_buffer > &&gd)
Construct a new packed columns object.
std::unique_ptr< std::vector< uint8_t > > metadata
Host-side metadata buffer.
std::unique_ptr< rmm::device_buffer > gpu_data
Device-side data buffer.
A table with its data stored in a contiguous, serialized format.
packed_columns data
Column data owned.
cudf::table_view table
Table view pointing into the packed data.
Class definition for cudf::table.
Type declarations for libcudf.