Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Dec 21, 2023
1 parent 7299d99 commit 30097f0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cpp/src/arrow/testing/random.h
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,10 @@ class ARROW_TESTING_EXPORT RandomArrayGenerator {

/// \brief Generate a random SparseUnionArray
///
/// The type ids are chosen randomly, according to a uniform distribution,
/// amongst the given child fields.
/// The type ids are chosen randomly from `type.type_codes()`, according to a uniform
/// distribution, amongst the given child fields.
///
/// \param[in] type The union data type
/// \param[in] fields Vector of Arrays containing the data for each union field
/// \param[in] size The size of the generated sparse union array
/// \param[in] alignment alignment for memory allocations (in bytes)
Expand All @@ -482,10 +483,11 @@ class ARROW_TESTING_EXPORT RandomArrayGenerator {

/// \brief Generate a random DenseUnionArray
///
/// The type ids are chosen randomly, according to a uniform distribution,
/// amongst the given child fields. The offsets are incremented along
/// The type ids are chosen randomly from `type.type_codes()`, according to a uniform
/// distribution, amongst the given child fields. The offsets are incremented along
/// each child field.
///
/// \param[in] type The union data type
/// \param[in] fields Vector of Arrays containing the data for each union field
/// \param[in] size The size of the generated sparse union array
/// \param[in] alignment alignment for memory allocations (in bytes)
Expand Down

0 comments on commit 30097f0

Please sign in to comment.