sparrow 2.0.0
C++20 idiomatic APIs for the Apache Arrow Columnar Format
Loading...
Searching...
No Matches
sparrow::null_count_policy Concept Reference

Concept that checks if a type is a valid null count policy. More...

#include <null_count_policy.hpp>

Concept definition

template<typename P>
concept sparrow::null_count_policy = requires(P p, P other, bool b, typename P::size_type s, const std::uint8_t* data) {
{ P::track_null_count } -> std::convertible_to<bool>;
{ p.update_null_count(b, b) } -> std::same_as<void>;
{ p.swap_null_count(other) } -> std::same_as<void>;
{ p.clear_null_count() } -> std::same_as<void>;
{ p.set_null_count(s) } -> std::same_as<void>;
{ p.initialize_null_count(data, s, s) } -> std::same_as<void>;
{ p.recompute_null_count(data, s, s) } -> std::same_as<void>;
}
Concept that checks if a type is a valid null count policy.

Detailed Description

Concept that checks if a type is a valid null count policy.

A valid policy must:

  • Have a static constexpr bool member 'track_null_count'
  • Provide update_null_count(bool, bool), swap(), clear(), set_null_count(), initialize(), and recompute() methods

Definition at line 209 of file null_count_policy.hpp.