Skip to content

Commit 2bb000f

Browse files
committed
[ntuple] Rename RNTupleProcessorEntry to RNTupleProcessorEntry
1 parent 7e7c221 commit 2bb000f

7 files changed

Lines changed: 132 additions & 132 deletions

File tree

tree/ntuple/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ HEADERS
2828
ROOT/RNTupleAttrWriting.hxx
2929
ROOT/RNTupleDescriptor.hxx
3030
ROOT/RNTupleComposer.hxx
31+
ROOT/RNTupleComposerEntry.hxx
3132
ROOT/RNTupleFillContext.hxx
3233
ROOT/RNTupleFillStatus.hxx
3334
ROOT/RNTupleImtTaskScheduler.hxx
@@ -37,7 +38,6 @@ HEADERS
3738
ROOT/RNTupleModel.hxx
3839
ROOT/RNTupleParallelWriter.hxx
3940
ROOT/RNTupleProcessor.hxx
40-
ROOT/RNTupleProcessorEntry.hxx
4141
ROOT/RNTupleRange.hxx
4242
ROOT/RNTupleReadOptions.hxx
4343
ROOT/RNTupleReader.hxx
@@ -73,6 +73,7 @@ SOURCES
7373
src/RNTupleAttrReading.cxx
7474
src/RNTupleAttrWriting.cxx
7575
src/RNTupleComposer.cxx
76+
src/RNTupleComposerEntry.cxx
7677
src/RNTupleDescriptor.cxx
7778
src/RNTupleDescriptorFmt.cxx
7879
src/RNTupleFillContext.cxx
@@ -81,7 +82,6 @@ SOURCES
8182
src/RNTupleMetrics.cxx
8283
src/RNTupleModel.cxx
8384
src/RNTupleParallelWriter.cxx
84-
src/RNTupleProcessorEntry.cxx
8585
src/RNTupleReader.cxx
8686
src/RNTupleSerialize.cxx
8787
src/RNTupleTypes.cxx

tree/ntuple/inc/ROOT/RNTupleComposer.hxx

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <ROOT/RNTupleJoinTable.hxx>
2222
#include <ROOT/RNTupleModel.hxx>
2323
#include <ROOT/RNTupleTypes.hxx>
24-
#include <ROOT/RNTupleProcessorEntry.hxx>
24+
#include <ROOT/RNTupleComposerEntry.hxx>
2525
#include <ROOT/RPageStorage.hxx>
2626

2727
#include <memory>
@@ -77,11 +77,11 @@ class RNTupleProcessorOptionalPtr {
7777
friend class RNTupleComposer;
7878

7979
private:
80-
Internal::RNTupleProcessorEntry *fProcessorEntry;
81-
Internal::RNTupleProcessorEntry::FieldIndex_t fFieldIndex;
80+
Internal::RNTupleComposerEntry *fProcessorEntry;
81+
Internal::RNTupleComposerEntry::FieldIndex_t fFieldIndex;
8282

83-
RNTupleProcessorOptionalPtr(Internal::RNTupleProcessorEntry *processorEntry,
84-
Internal::RNTupleProcessorEntry::FieldIndex_t fieldIdx)
83+
RNTupleProcessorOptionalPtr(Internal::RNTupleComposerEntry *processorEntry,
84+
Internal::RNTupleComposerEntry::FieldIndex_t fieldIdx)
8585
: fProcessorEntry(processorEntry), fFieldIndex(fieldIdx)
8686
{
8787
}
@@ -162,11 +162,11 @@ class RNTupleProcessorOptionalPtr<void> {
162162
friend class RNTupleComposer;
163163

164164
private:
165-
Internal::RNTupleProcessorEntry *fProcessorEntry;
166-
Internal::RNTupleProcessorEntry::FieldIndex_t fFieldIndex;
165+
Internal::RNTupleComposerEntry *fProcessorEntry;
166+
Internal::RNTupleComposerEntry::FieldIndex_t fFieldIndex;
167167

168-
RNTupleProcessorOptionalPtr(Internal::RNTupleProcessorEntry *processorEntry,
169-
Internal::RNTupleProcessorEntry::FieldIndex_t fieldIdx)
168+
RNTupleProcessorOptionalPtr(Internal::RNTupleComposerEntry *processorEntry,
169+
Internal::RNTupleComposerEntry::FieldIndex_t fieldIdx)
170170
: fProcessorEntry(processorEntry), fFieldIndex(fieldIdx)
171171
{
172172
}
@@ -254,8 +254,8 @@ class RNTupleComposer {
254254

255255
protected:
256256
std::string fProcessorName;
257-
std::shared_ptr<Internal::RNTupleProcessorEntry> fEntry = nullptr;
258-
std::unordered_set<Internal::RNTupleProcessorEntry::FieldIndex_t> fFieldIdxs;
257+
std::shared_ptr<Internal::RNTupleComposerEntry> fEntry = nullptr;
258+
std::unordered_set<Internal::RNTupleComposerEntry::FieldIndex_t> fFieldIdxs;
259259

260260
/// Total number of entries. Only to be used internally by the processor, not meant to be exposed in the public
261261
/// interface.
@@ -266,7 +266,7 @@ protected:
266266

267267
/////////////////////////////////////////////////////////////////////////////
268268
/// \brief Initialize the processor by creating an (initially empty) `fEntry`, or setting an existing one.
269-
virtual void Initialize(std::shared_ptr<Internal::RNTupleProcessorEntry> entry) = 0;
269+
virtual void Initialize(std::shared_ptr<Internal::RNTupleComposerEntry> entry) = 0;
270270

271271
/////////////////////////////////////////////////////////////////////////////
272272
/// \brief Check if the processor already has been initialized.
@@ -279,8 +279,8 @@ protected:
279279
/// \param[in] provenance Provenance of the processor.
280280
/// \param[in] updateFields Whether the fields in the entry need to be updated, because the current underlying
281281
/// RNTuple source changed.
282-
virtual void Connect(const std::unordered_set<Internal::RNTupleProcessorEntry::FieldIndex_t> &fieldIdxs,
283-
const Internal::RNTupleProcessorProvenance &provenance, bool updateFields) = 0;
282+
virtual void Connect(const std::unordered_set<Internal::RNTupleComposerEntry::FieldIndex_t> &fieldIdxs,
283+
const Internal::RNTupleCompositionProvenance &provenance, bool updateFields) = 0;
284284

285285
/////////////////////////////////////////////////////////////////////////////
286286
/// \brief Load the entry identified by the provided entry number.
@@ -313,9 +313,9 @@ protected:
313313
/// \return The index of the newly added field in the entry.
314314
///
315315
/// In case the field was already present in the entry, the index of the existing field is returned.
316-
virtual Internal::RNTupleProcessorEntry::FieldIndex_t
316+
virtual Internal::RNTupleComposerEntry::FieldIndex_t
317317
AddFieldToEntry(const std::string &fieldName, const std::string &typeName, void *valuePtr,
318-
const Internal::RNTupleProcessorProvenance &provenance) = 0;
318+
const Internal::RNTupleCompositionProvenance &provenance) = 0;
319319

320320
/////////////////////////////////////////////////////////////////////////////
321321
/// \brief Add the entry mappings for this processor to the provided join table.
@@ -388,7 +388,7 @@ public:
388388
if constexpr (!std::is_void_v<T>) {
389389
typeName = ROOT::Internal::GetRenormalizedTypeName(typeid(T));
390390
}
391-
auto fieldIdx = AddFieldToEntry(fieldName, typeName, valuePtr, Internal::RNTupleProcessorProvenance());
391+
auto fieldIdx = AddFieldToEntry(fieldName, typeName, valuePtr, Internal::RNTupleCompositionProvenance());
392392
return RNTupleProcessorOptionalPtr<T>(fEntry.get(), fieldIdx);
393393
}
394394

@@ -411,7 +411,7 @@ public:
411411
RequestField(const std::string &fieldName, const std::string &typeName, void *valuePtr = nullptr)
412412
{
413413
Initialize(fEntry);
414-
auto fieldIdx = AddFieldToEntry(fieldName, typeName, valuePtr, Internal::RNTupleProcessorProvenance());
414+
auto fieldIdx = AddFieldToEntry(fieldName, typeName, valuePtr, Internal::RNTupleCompositionProvenance());
415415
return RNTupleProcessorOptionalPtr<void>(fEntry.get(), fieldIdx);
416416
}
417417

@@ -529,12 +529,12 @@ private:
529529
/// \brief Initialize the processor by creating an (initially empty) `fEntry`, or setting an existing one.
530530
///
531531
/// At this point, the page source for the underlying RNTuple of the processor will be created and opened.
532-
void Initialize(std::shared_ptr<Internal::RNTupleProcessorEntry> entry = nullptr) final;
532+
void Initialize(std::shared_ptr<Internal::RNTupleComposerEntry> entry = nullptr) final;
533533

534534
/////////////////////////////////////////////////////////////////////////////
535535
/// \brief Connect the provided fields indices in the entry to their on-disk fields.
536-
void Connect(const std::unordered_set<Internal::RNTupleProcessorEntry::FieldIndex_t> &fieldIdxs,
537-
const Internal::RNTupleProcessorProvenance &provenance = Internal::RNTupleProcessorProvenance(),
536+
void Connect(const std::unordered_set<Internal::RNTupleComposerEntry::FieldIndex_t> &fieldIdxs,
537+
const Internal::RNTupleCompositionProvenance &provenance = Internal::RNTupleCompositionProvenance(),
538538
bool updateFields = false) final;
539539

540540
/////////////////////////////////////////////////////////////////////////////
@@ -564,9 +564,9 @@ private:
564564
/// \brief Add a field to the entry.
565565
///
566566
/// \sa RNTupleComposer::AddFieldToEntry()
567-
Internal::RNTupleProcessorEntry::FieldIndex_t AddFieldToEntry(
567+
Internal::RNTupleComposerEntry::FieldIndex_t AddFieldToEntry(
568568
const std::string &fieldName, const std::string &typeName, void *valuePtr = nullptr,
569-
const Internal::RNTupleProcessorProvenance &provenance = Internal::RNTupleProcessorProvenance()) final;
569+
const Internal::RNTupleCompositionProvenance &provenance = Internal::RNTupleCompositionProvenance()) final;
570570

571571
/////////////////////////////////////////////////////////////////////////////
572572
/// \brief Add the entry mappings for this processor to the provided join table.
@@ -615,18 +615,18 @@ private:
615615
std::vector<std::unique_ptr<RNTupleComposer>> fInnerProcessors;
616616
std::vector<ROOT::NTupleSize_t> fInnerNEntries;
617617

618-
Internal::RNTupleProcessorProvenance fProvenance;
618+
Internal::RNTupleCompositionProvenance fProvenance;
619619

620620
/////////////////////////////////////////////////////////////////////////////
621621
/// \brief Initialize the processor by creating an (initially empty) `fEntry`, or setting an existing one.
622-
void Initialize(std::shared_ptr<Internal::RNTupleProcessorEntry> entry = nullptr) final;
622+
void Initialize(std::shared_ptr<Internal::RNTupleComposerEntry> entry = nullptr) final;
623623

624624
/////////////////////////////////////////////////////////////////////////////
625625
/// \brief Connect the provided fields indices in the entry to their on-disk fields.
626626
///
627627
/// \sa RNTupleComposer::Connect()
628-
void Connect(const std::unordered_set<Internal::RNTupleProcessorEntry::FieldIndex_t> &fieldIdxs,
629-
const Internal::RNTupleProcessorProvenance &provenance = Internal::RNTupleProcessorProvenance(),
628+
void Connect(const std::unordered_set<Internal::RNTupleComposerEntry::FieldIndex_t> &fieldIdxs,
629+
const Internal::RNTupleCompositionProvenance &provenance = Internal::RNTupleCompositionProvenance(),
630630
bool updateFields = false) final;
631631

632632
/////////////////////////////////////////////////////////////////////////////
@@ -659,9 +659,9 @@ private:
659659
/// \brief Add a field to the entry.
660660
///
661661
/// \sa RNTupleComposer::AddFieldToEntry()
662-
Internal::RNTupleProcessorEntry::FieldIndex_t AddFieldToEntry(
662+
Internal::RNTupleComposerEntry::FieldIndex_t AddFieldToEntry(
663663
const std::string &fieldName, const std::string &typeName, void *valuePtr = nullptr,
664-
const Internal::RNTupleProcessorProvenance &provenance = Internal::RNTupleProcessorProvenance()) final;
664+
const Internal::RNTupleCompositionProvenance &provenance = Internal::RNTupleCompositionProvenance()) final;
665665

666666
/////////////////////////////////////////////////////////////////////////////
667667
/// \brief Add the entry mappings for this processor to the provided join table.
@@ -708,22 +708,22 @@ private:
708708
std::unique_ptr<RNTupleComposer> fAuxiliaryProcessor;
709709

710710
std::vector<std::string> fJoinFieldNames;
711-
std::set<Internal::RNTupleProcessorEntry::FieldIndex_t> fJoinFieldIdxs;
711+
std::set<Internal::RNTupleComposerEntry::FieldIndex_t> fJoinFieldIdxs;
712712

713713
std::unique_ptr<Internal::RNTupleJoinTable> fJoinTable;
714714
bool fJoinTableIsBuilt = false;
715715

716-
std::unordered_set<Internal::RNTupleProcessorEntry::FieldIndex_t> fAuxiliaryFieldIdxs;
716+
std::unordered_set<Internal::RNTupleComposerEntry::FieldIndex_t> fAuxiliaryFieldIdxs;
717717

718718
/// \brief Initialize the processor by creating an (initially empty) `fEntry`, or setting an existing one.
719-
void Initialize(std::shared_ptr<Internal::RNTupleProcessorEntry> entry = nullptr) final;
719+
void Initialize(std::shared_ptr<Internal::RNTupleComposerEntry> entry = nullptr) final;
720720

721721
/////////////////////////////////////////////////////////////////////////////
722722
/// \brief Connect the provided fields indices in the entry to their on-disk fields.
723723
///
724724
/// \sa RNTupleComposer::Connect()
725-
void Connect(const std::unordered_set<Internal::RNTupleProcessorEntry::FieldIndex_t> &fieldIdxs,
726-
const Internal::RNTupleProcessorProvenance &provenance = Internal::RNTupleProcessorProvenance(),
725+
void Connect(const std::unordered_set<Internal::RNTupleComposerEntry::FieldIndex_t> &fieldIdxs,
726+
const Internal::RNTupleCompositionProvenance &provenance = Internal::RNTupleCompositionProvenance(),
727727
bool updateFields = false) final;
728728

729729
/////////////////////////////////////////////////////////////////////////////
@@ -759,9 +759,9 @@ private:
759759
/// \brief Add a field to the entry.
760760
///
761761
/// \sa RNTupleComposer::AddFieldToEntry()
762-
Internal::RNTupleProcessorEntry::FieldIndex_t AddFieldToEntry(
762+
Internal::RNTupleComposerEntry::FieldIndex_t AddFieldToEntry(
763763
const std::string &fieldName, const std::string &typeName, void *valuePtr = nullptr,
764-
const Internal::RNTupleProcessorProvenance &provenance = Internal::RNTupleProcessorProvenance()) final;
764+
const Internal::RNTupleCompositionProvenance &provenance = Internal::RNTupleCompositionProvenance()) final;
765765

766766
/////////////////////////////////////////////////////////////////////////////
767767
/// \brief Add the entry mappings for this processor to the provided join table.

0 commit comments

Comments
 (0)