35 "maximum uncompressed cluster size"));
42 "maximum uncompressed cluster size"));
50 return std::make_unique<RNTupleWriteOptions>(*
this);
55 EnsureValidTunables(val, fMaxUnzippedClusterSize, fInitialUnzippedPageSize, fMaxUnzippedPageSize);
56 fApproxZippedClusterSize = val;
61 EnsureValidTunables(fApproxZippedClusterSize, val, fInitialUnzippedPageSize, fMaxUnzippedPageSize);
62 fMaxUnzippedClusterSize = val;
67 EnsureValidTunables(fApproxZippedClusterSize, fMaxUnzippedClusterSize, val, fMaxUnzippedPageSize);
68 fInitialUnzippedPageSize = val;
73 EnsureValidTunables(fApproxZippedClusterSize, fMaxUnzippedClusterSize, fInitialUnzippedPageSize, val);
74 fMaxUnzippedPageSize = val;
79 if (val && !fEnablePageChecksums) {
80 throw RException(
R__FAIL(
"same page merging requires page checksums, which were previously disabled"));
82 fEnableSamePageMerging = val;
87 if (fPageBufferBudget != 0)
88 return fPageBufferBudget;
90 return GetApproxZippedClusterSize() + (GetCompression() != 0) * GetApproxZippedClusterSize();
#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.
Base class for all ROOT issued exceptions.
std::size_t GetPageBufferBudget() const
void SetMaxUnzippedClusterSize(std::size_t val)
void SetMaxUnzippedPageSize(std::size_t val)
void SetInitialUnzippedPageSize(std::size_t val)
virtual std::unique_ptr< RNTupleWriteOptions > Clone() const
void SetEnableSamePageMerging(bool val)
void SetApproxZippedClusterSize(std::size_t val)