Skip to content

[ntuple] Simplify RNTupleProcessor factory methods#18608

Merged
enirolf merged 2 commits intoroot-project:masterfrom
enirolf:ntuple-processor-creation
May 7, 2025
Merged

[ntuple] Simplify RNTupleProcessor factory methods#18608
enirolf merged 2 commits intoroot-project:masterfrom
enirolf:ntuple-processor-creation

Conversation

@enirolf
Copy link
Contributor

@enirolf enirolf commented May 5, 2025

As discussed in #18224 (comment), having a separate overload for processorName causes a lot of bloat. With this PR, instead of having an overload that takes processorName, now it is just an optional argument with the empty
string as a default argument. This simplifies and de-bloats the interface quite significantly.

The constructors for each RNTupleProcessor subclass have been refactored to reflect this new argument order, and the "burden" of inferring the processor's name has been moved from the factories to the constructors.

@enirolf enirolf self-assigned this May 5, 2025
@enirolf enirolf requested a review from jblomer as a code owner May 5, 2025 13:19
Copy link
Member

@vepadulano vepadulano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice thanks!

@github-actions
Copy link

github-actions bot commented May 5, 2025

Test Results

    19 files      19 suites   4d 0h 9m 53s ⏱️
 2 728 tests  2 728 ✅ 0 💤 0 ❌
50 405 runs  50 405 ✅ 0 💤 0 ❌

Results for commit 679485f.

♻️ This comment has been updated with latest results.

Copy link
Member

@hahnjo hahnjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some function documentation to update

@enirolf enirolf force-pushed the ntuple-processor-creation branch 2 times, most recently from eb4f35b to a8ed4ff Compare May 6, 2025 08:03
@enirolf enirolf added the clean build Ask CI to do non-incremental build on PR label May 6, 2025
enirolf added 2 commits May 6, 2025 17:59
For each factory, instead of having an overload that takes
`processorName`, now it is just an optional argument with the empty
string as a default argument. This simplifies and de-bloats the
interface quite significantly.
Mostly to reflect the new argument order in the factory methods. In
addition, the default values in the `RNTupleJoinProcessor` ctor are
redundant (these arguments are always passed by the caller), so they
have been removed.
@enirolf enirolf force-pushed the ntuple-processor-creation branch from a8ed4ff to 679485f Compare May 6, 2025 16:03
@enirolf enirolf merged commit 735bf0e into root-project:master May 7, 2025
23 checks passed
@enirolf enirolf deleted the ntuple-processor-creation branch May 7, 2025 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean build Ask CI to do non-incremental build on PR in:RNTuple

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants