packed_types.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2023-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
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 
22 namespace CUDF_EXPORT cudf {
23 
37  : metadata(std::make_unique<std::vector<uint8_t>>()),
38  gpu_data(std::make_unique<rmm::device_buffer>())
39  {
40  }
41 
48  packed_columns(std::unique_ptr<std::vector<uint8_t>>&& md,
49  std::unique_ptr<rmm::device_buffer>&& gd)
50  : metadata(std::move(md)), gpu_data(std::move(gd))
51  {
52  }
53 
54  std::unique_ptr<std::vector<uint8_t>> metadata;
55  std::unique_ptr<rmm::device_buffer> gpu_data;
56 };
57 
69 struct packed_table {
72 };
73 
75 } // namespace CUDF_EXPORT cudf
A set of cudf::column_view's of the same size.
Definition: table_view.hpp:206
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.