Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Doxygen warnings in multiple headers files #11003

Merged
merged 24 commits into from
Jun 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c97c449
add missing doc in fixed_point.hpp
karthikeyann May 22, 2022
7089e34
using single docstring style
karthikeyann May 24, 2022
9151ee1
add missing docs in cudf_test/
karthikeyann May 27, 2022
529dc7b
add missing docs in parquet.hpp
karthikeyann May 27, 2022
284aea0
add misisng docs in nvtext/
karthikeyann May 27, 2022
46435c8
add missing docs in cudf_kafka/
karthikeyann May 27, 2022
ce2681c
add missing docs in cudf/ipc.hpp
karthikeyann May 27, 2022
2bb383b
Apply suggestions from code review
karthikeyann May 28, 2022
5779b9e
style fix copyright, add missing #pragma once
karthikeyann May 28, 2022
24c9c55
Merge branches 'doc-fix_warnings11' and 'doc-fix_warnings17' of githu…
karthikeyann Jun 1, 2022
2ce72b0
Merge branch 'branch-22.08' of https://github.com/rapidsai/cudf into …
karthikeyann Jun 1, 2022
c022dbf
exclude cudf_test/ and include column_wrapper and utilties
karthikeyann Jun 1, 2022
612be02
Apply suggestions from code review
karthikeyann Jun 1, 2022
dcda984
Apply suggestions from code review
karthikeyann Jun 1, 2022
6bb23cc
newline after \brief
karthikeyann Jun 1, 2022
8b1486a
Merge branch 'doc-fix_warnings17' of github.com:karthikeyann/cudf int…
karthikeyann Jun 1, 2022
d7a46c3
Apply suggestions from code review
karthikeyann Jun 1, 2022
0c4a1e2
adds blankline after \brief
karthikeyann Jun 1, 2022
06fb93f
add missed blankline after \brief
karthikeyann Jun 1, 2022
e114492
removing code ::testing::Types after excluding cudf_gtest.hpp
karthikeyann Jun 3, 2022
0a3098e
Apply suggestions from code review
karthikeyann Jun 3, 2022
e103bb6
Update cpp/include/cudf/io/parquet.hpp
karthikeyann Jun 5, 2022
4b29c2b
style fix
karthikeyann Jun 5, 2022
4fb276b
Merge branch 'branch-22.08' of https://github.com/rapidsai/cudf into …
karthikeyann Jun 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cpp/doxygen/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,12 @@ INPUT = main_page.md \
regex.md \
unicode.md \
../include \
../include/cudf_test/column_wrapper.hpp \
../include/cudf_test/column_utilities.hpp \
../include/cudf_test/iterator_utilities.hpp \
../include/cudf_test/table_utilities.hpp \
../include/cudf_test/type_lists.hpp \
../include/cudf_test/type_list_utilities.hpp \
../libcudf_kafka/include

# This tag can be used to specify the character encoding of the source files
Expand Down Expand Up @@ -881,7 +887,7 @@ EXCLUDE_SYMLINKS = NO
# Note that the wildcards are matched against the file with absolute path, so to
# exclude all test directories for example use the pattern */test/*

EXCLUDE_PATTERNS = */nvtx/* */detail/*
EXCLUDE_PATTERNS = */nvtx/* */detail/* */cudf_test/*

# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
# (namespaces, classes, functions, etc.) that should be excluded from the
Expand Down
7 changes: 7 additions & 0 deletions cpp/include/cudf/column/column_device_view.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,7 @@ __device__ inline bitmask_type get_mask_offset_word(bitmask_type const* __restri

/**
* @brief value accessor of column without null bitmask
*
* A unary functor returns scalar value at `id`.
* `operator() (cudf::size_type id)` computes `element`
* This functor is only allowed for non-nullable columns.
Expand All @@ -1249,6 +1250,7 @@ struct value_accessor {

/**
* @brief constructor
*
* @param[in] _col column device view of cudf column
*/
value_accessor(column_device_view const& _col) : col{_col}
Expand Down Expand Up @@ -1328,6 +1330,7 @@ struct optional_accessor {

/**
* @brief pair accessor of column with/without null bitmask
*
* A unary functor returns pair with scalar value at `id` and boolean validity
* `operator() (cudf::size_type id)` computes `element` and
* returns a `pair(element, validity)`
Expand All @@ -1350,6 +1353,7 @@ struct pair_accessor {

/**
* @brief constructor
*
* @param[in] _col column device view of cudf column
*/
pair_accessor(column_device_view const& _col) : col{_col}
Expand All @@ -1372,6 +1376,7 @@ struct pair_accessor {

/**
* @brief pair accessor of column with/without null bitmask
*
* A unary functor returns pair with representative scalar value at `id` and boolean validity
* `operator() (cudf::size_type id)` computes `element` and
* returns a `pair(element, validity)`
Expand All @@ -1396,6 +1401,7 @@ struct pair_rep_accessor {

/**
* @brief constructor
*
* @param[in] _col column device view of cudf column
*/
pair_rep_accessor(column_device_view const& _col) : col{_col}
Expand Down Expand Up @@ -1446,6 +1452,7 @@ struct mutable_value_accessor {

/**
* @brief Constructor
*
* @param[in] _col mutable column device view of cudf column
*/
mutable_value_accessor(mutable_column_device_view& _col) : col{_col}
Expand Down
4 changes: 4 additions & 0 deletions cpp/include/cudf/copying.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ std::unique_ptr<table> gather(

/**
* @brief Reverses the rows within a table.
*
* Creates a new table that is the reverse of @p source_table.
* Example:
* ```
Expand All @@ -103,6 +104,7 @@ std::unique_ptr<table> reverse(

/**
* @brief Reverses the elements of a column
*
* Creates a new column that is the reverse of @p source_column.
* Example:
* ```
Expand Down Expand Up @@ -229,6 +231,7 @@ std::unique_ptr<column> empty_like(scalar const& input);

/**
* @brief Creates an uninitialized new column of the same size and type as the `input`.
*
* Supports only fixed-width types.
*
* @param[in] input Immutable view of input column to emulate
Expand All @@ -244,6 +247,7 @@ std::unique_ptr<column> allocate_like(

/**
* @brief Creates an uninitialized new column of the specified size and same type as the `input`.
*
* Supports only fixed-width types.
*
* @param[in] input Immutable view of input column to emulate
Expand Down
57 changes: 41 additions & 16 deletions cpp/include/cudf/io/parquet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,17 +526,23 @@ class parquet_writer_options {
auto get_row_group_size_rows() const { return _row_group_size_rows; }

/**
* @brief Returns the maximum uncompressed page size, in bytes. If set larger than the row group
* size, then this will return the row group size.
* @brief Returns the maximum uncompressed page size, in bytes.
*
* If set larger than the row group size, then this will return the row group size.
*
* @return Maximum uncompressed page size, in bytes
*/
auto get_max_page_size_bytes() const
{
return std::min(_max_page_size_bytes, get_row_group_size_bytes());
}

/**
* @brief Returns maximum page size, in rows. If set larger than the row group size, then this
* will return the row group size.
* @brief Returns maximum page size, in rows.
*
* If set larger than the row group size, then this will return the row group size.
*
* @return Maximum page size, in rows
*/
auto get_max_page_size_rows() const
{
Expand Down Expand Up @@ -638,6 +644,8 @@ class parquet_writer_options {

/**
* @brief Sets the maximum uncompressed page size, in bytes.
*
* @param size_bytes Maximum uncompressed page size, in bytes to set
karthikeyann marked this conversation as resolved.
Show resolved Hide resolved
*/
void set_max_page_size_bytes(size_t size_bytes)
{
Expand All @@ -647,6 +655,8 @@ class parquet_writer_options {

/**
* @brief Sets the maximum page size, in rows.
*
* @param size_rows Maximum page size, in rows to set
*/
void set_max_page_size_rows(size_type size_rows)
{
Expand Down Expand Up @@ -788,9 +798,11 @@ class parquet_writer_options_builder {
}

/**
* @brief Sets the maximum uncompressed page size, in bytes. Serves as a hint to the writer,
* and can be exceeded under certain circumstances. Cannot be larger than the row group size in
* bytes, and will be adjusted to match if it is.
* @brief Sets the maximum uncompressed page size, in bytes.
*
* Serves as a hint to the writer, * and can be exceeded under certain circumstances.
* Cannot be larger than the row group size in bytes, and will be adjusted to
* match if it is.
*
* @param val maximum page size
* @return this for chaining
Expand Down Expand Up @@ -979,17 +991,24 @@ class chunked_parquet_writer_options {
auto get_row_group_size_rows() const { return _row_group_size_rows; }

/**
* @brief Returns maximum uncompressed page size, in bytes. If set larger than the row group size,
* then this will return the row group size.
* @brief Returns maximum uncompressed page size, in bytes.
*
* If set larger than the row group size, then this will return the
* row group size.
*
* @return Maximum uncompressed page size, in bytes
*/
auto get_max_page_size_bytes() const
{
return std::min(_max_page_size_bytes, get_row_group_size_bytes());
}

/**
* @brief Returns maximum page size, in rows. If set larger than the row group size, then this
* will return the row group size.
* @brief Returns maximum page size, in rows.
*
* If set larger than the row group size, then this will return the row group size.
*
* @return Maximum page size, in rows
*/
auto get_max_page_size_rows() const
{
Expand Down Expand Up @@ -1030,8 +1049,9 @@ class chunked_parquet_writer_options {
void set_compression(compression_type compression) { _compression = compression; }

/**
* @brief Sets timestamp writing preferences. INT96 timestamps will be written
* if `true` and TIMESTAMP_MICROS will be written if `false`.
* @brief Sets timestamp writing preferences.
*
* INT96 timestamps will be written if `true` and TIMESTAMP_MICROS will be written if `false`.
*
* @param req Boolean value to enable/disable writing of INT96 timestamps
*/
Expand Down Expand Up @@ -1065,6 +1085,8 @@ class chunked_parquet_writer_options {

/**
* @brief Sets the maximum uncompressed page size, in bytes.
*
* @param size_bytes Maximum uncompressed page size, in bytes to set
*/
void set_max_page_size_bytes(size_t size_bytes)
{
Expand All @@ -1074,6 +1096,8 @@ class chunked_parquet_writer_options {

/**
* @brief Sets the maximum page size, in rows.
*
* @param size_rows The maximum page size, in rows to set
*/
void set_max_page_size_rows(size_type size_rows)
{
Expand Down Expand Up @@ -1205,9 +1229,10 @@ class chunked_parquet_writer_options_builder {
}

/**
* @brief Sets the maximum uncompressed page size, in bytes. Serves as a hint to the writer,
* and can be exceeded under certain circumstances. Cannot be larger than the row group size in
* bytes, and will be adjusted to match if it is.
* @brief Sets the maximum uncompressed page size, in bytes.
*
* Serves as a hint to the writer, and can be exceeded under certain circumstances. Cannot be
* larger than the row group size in bytes, and will be adjusted to match if it is.
*
* @param val maximum page size
* @return this for chaining
Expand Down
4 changes: 4 additions & 0 deletions cpp/include/cudf/io/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ struct column_name_info {

/**
* @brief Table metadata for io readers/writers (primarily column names)
*
* For nested types (structs, maps, unions), the ordering of names in the column_names vector
* corresponds to a pre-order traversal of the column tree.
* In the example below (2 top-level columns: struct column "col1" and string column "col2"),
Expand Down Expand Up @@ -519,6 +520,7 @@ class column_in_metadata {

/**
* @brief Gets the explicitly set nullability for this column.
*
* @throws If nullability is not explicitly defined for this column.
* Check using `is_nullability_defined()` first.
* @return Boolean indicating whether this column is nullable
Expand Down Expand Up @@ -549,6 +551,7 @@ class column_in_metadata {

/**
* @brief Get the decimal precision that was set for this column.
*
* @throws If decimal precision was not set for this column.
* Check using `is_decimal_precision_set()` first.
* @return The decimal precision that was set for this column
Expand All @@ -564,6 +567,7 @@ class column_in_metadata {

/**
* @brief Get the parquet field id that was set for this column.
*
* @throws If parquet field id was not set for this column.
* Check using `is_parquet_field_id_set()` first.
* @return The parquet field id that was set for this column
Expand Down
40 changes: 40 additions & 0 deletions cpp/include/cudf/ipc.hpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,55 @@
/*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#pragma once

#include <arrow/api.h>
#include <arrow/gpu/cuda_api.h>
#include <arrow/io/memory.h>
#include <arrow/ipc/api.h>

/**
* @brief Reads Message objects from cuda buffer source
*
*/
class CudaMessageReader : arrow::ipc::MessageReader {
public:
/**
* @brief Construct a new Cuda Message Reader object from a cuda buffer stream
*
* @param stream The cuda buffer reader stream
* @param schema The schema of the stream
*/
CudaMessageReader(arrow::cuda::CudaBufferReader* stream, arrow::io::BufferReader* schema);

/**
* @brief Open stream from source.
*
* @param stream The cuda buffer reader stream
* @param schema The schema of the stream
* @return arrow::ipc::MessageReader object
*/
static std::unique_ptr<arrow::ipc::MessageReader> Open(arrow::cuda::CudaBufferReader* stream,
arrow::io::BufferReader* schema);

/**
* @brief Read next Message from the stream.
*
* @return arrow::ipc::Message object
*/
ttnghia marked this conversation as resolved.
Show resolved Hide resolved
arrow::Result<std::unique_ptr<arrow::ipc::Message>> ReadNextMessage() override;

private:
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/cudf/quantiles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace cudf {

/**
* @brief Computes quantiles with interpolation.

*
* Computes the specified quantiles by interpolating values between which they
* lie, using the interpolation strategy specified in `interp`.
*
Expand Down
1 change: 1 addition & 0 deletions cpp/include/cudf/scalar/scalar_device_view.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class scalar_device_view_base {

/**
* @brief Returns the value type
*
* @returns The value type
*/
[[nodiscard]] __host__ __device__ data_type type() const noexcept { return _type; }
Expand Down
14 changes: 13 additions & 1 deletion cpp/include/cudf_test/base_fixture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ uint64_t random_generator_incrementing_seed();
template <typename T = cudf::size_type, typename Engine = std::default_random_engine>
class UniformRandomGenerator {
public:
using uniform_distribution = uniform_distribution_t<T>;
using uniform_distribution = uniform_distribution_t<T>; ///< The uniform distribution type for T.

UniformRandomGenerator() : rng{std::mt19937_64{detail::random_generator_incrementing_seed()}()} {}

Expand All @@ -144,6 +144,13 @@ class UniformRandomGenerator {
{
}

/**
* @brief Construct a new Uniform Random Generator to generate uniformly random booleans
*
PointKernel marked this conversation as resolved.
Show resolved Hide resolved
* @param lower ignored
* @param upper ignored
* @param seed seed to initialize generator with
*/
template <typename TL = T, std::enable_if_t<cudf::is_boolean<TL>()>* = nullptr>
UniformRandomGenerator(T lower,
T upper,
Expand Down Expand Up @@ -171,6 +178,7 @@ class UniformRandomGenerator {

/**
* @brief Returns the next random number.
*
* @return generated random number
*/
template <typename TL = T, std::enable_if_t<!cudf::is_timestamp<TL>()>* = nullptr>
Expand All @@ -179,6 +187,10 @@ class UniformRandomGenerator {
return T{dist(rng)};
}

/**
* @brief Returns the next random number.
PointKernel marked this conversation as resolved.
Show resolved Hide resolved
* @return generated random number
*/
template <typename TL = T, std::enable_if_t<cudf::is_timestamp<TL>()>* = nullptr>
T generate()
{
Expand Down
Loading