16#ifndef ROOT7_RNTupleFillContext
17#define ROOT7_RNTupleFillContext
31namespace Experimental {
57 std::unique_ptr<Internal::RPageSink>
fSink;
59 std::unique_ptr<RNTupleModel>
fModel;
#define R__unlikely(expr)
#define R__FAIL(msg)
Short-hand to return an RResult<T> in an error state; the RError is implicitly converted into RResult...
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A collection of Counter objects with a name, a unit, and a description.
The REntry is a collection of values in an ntuple corresponding to a complete row in the data set.
Base class for all ROOT issued exceptions.
A context for filling entries (data) into clusters of an RNTuple.
std::size_t fUnzippedClusterSize
Keeps track of the number of bytes written into the current cluster.
std::uint64_t fNBytesFilled
The total number of bytes filled into all the so far committed clusters, i.e.
RNTupleFillContext(const RNTupleFillContext &)=delete
Detail::RNTupleMetrics fMetrics
NTupleSize_t fLastCommitted
std::size_t fUnzippedClusterSizeEst
Estimator of uncompressed cluster size, taking into account the estimated compression ratio.
RNTupleFillContext & operator=(const RNTupleFillContext &)=delete
void CommitCluster()
Ensure that the data from the so far seen Fill calls has been written to storage.
std::size_t Fill(REntry &entry)
Fill an entry into this context.
std::uint64_t fNBytesCommitted
The total number of bytes written to storage (i.e., after compression)
std::unique_ptr< RNTupleModel > fModel
Needs to be destructed before fSink.
std::size_t fMaxUnzippedClusterSize
Limit for committing cluster no matter the other tunables.
const Detail::RNTupleMetrics & GetMetrics() const
NTupleSize_t GetNEntries() const
Return the number of entries filled so far.
NTupleSize_t GetLastCommitted() const
Return the entry number that was last committed in a cluster.
std::unique_ptr< REntry > CreateEntry()
RNTupleFillContext(std::unique_ptr< RNTupleModel > model, std::unique_ptr< Internal::RPageSink > sink)
std::unique_ptr< Internal::RPageSink > fSink
A writer to fill an RNTuple from multiple contexts.
An RNTuple that gets filled with entries (data) and writes them to storage.
std::uint64_t NTupleSize_t
Integer type long enough to hold the maximum number of entries in a column.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...