Public Member Functions | Friends | List of all members
cudf::packed_metadata_view::column_view Class Reference

A non-owning view of a single column's metadata within packed column data. More...

#include <contiguous_split.hpp>

Public Member Functions

data_type type () const
 
size_type num_rows () const
 
size_type null_count () const
 
size_type num_children () const
 
column_view child (size_type i) const
 A view of the i-th child column's metadata. More...
 

Friends

class packed_metadata_view
 

Detailed Description

A non-owning view of a single column's metadata within packed column data.

This lightweight view (two pointers) wraps a single serialized column entry and provides access to its schema information (type, size, null count, children) without requiring device data or building a column_view.

Instances are obtained from packed_metadata_view::column() or packed_column_metadata::child(). They remain valid as long as the underlying metadata byte buffer is alive.

Definition at line 351 of file contiguous_split.hpp.

Member Function Documentation

◆ child()

column_view cudf::packed_metadata_view::column_view::child ( size_type  i) const

A view of the i-th child column's metadata.

Exceptions
std::out_of_rangeif i is not contained in [0, num_children())
Parameters
iIndex of the child column
Returns
A packed_column_metadata_view for the i-th child

◆ null_count()

size_type cudf::packed_metadata_view::column_view::null_count ( ) const
Returns
The null count of this column.

◆ num_children()

size_type cudf::packed_metadata_view::column_view::num_children ( ) const
Returns
The number of children of this column.

◆ num_rows()

size_type cudf::packed_metadata_view::column_view::num_rows ( ) const
Returns
The number of rows in this column.

◆ type()

data_type cudf::packed_metadata_view::column_view::type ( ) const
Returns
The data_type of this column.

The documentation for this class was generated from the following file: