37 "maximum uncompressed cluster size"));
44 "maximum uncompressed cluster size"));
52 return std::make_unique<RNTupleWriteOptions>(*
this);
57 EnsureValidTunables(val, fMaxUnzippedClusterSize, fInitialUnzippedPageSize, fMaxUnzippedPageSize);
58 fApproxZippedClusterSize = val;
63 EnsureValidTunables(fApproxZippedClusterSize, val, fInitialUnzippedPageSize, fMaxUnzippedPageSize);
64 fMaxUnzippedClusterSize = val;
69 EnsureValidTunables(fApproxZippedClusterSize, fMaxUnzippedClusterSize, val, fMaxUnzippedPageSize);
70 fInitialUnzippedPageSize = val;
75 EnsureValidTunables(fApproxZippedClusterSize, fMaxUnzippedClusterSize, fInitialUnzippedPageSize, val);
76 fMaxUnzippedPageSize = val;
81 if (val && !fEnablePageChecksums) {
82 throw RException(
R__FAIL(
"same page merging requires page checksums, which were previously disabled"));
84 fEnableSamePageMerging = val;
89 if (fPageBufferBudget != 0)
90 return fPageBufferBudget;
92 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)