31#include "iceberg/iceberg_data_export.h"
32#include "iceberg/result.h"
51 static constexpr int64_t kMaxPosition = 0x7FFFFFFE80000000LL;
65 void Add(int64_t pos);
73 void AddRange(int64_t pos_start, int64_t pos_end);
78 bool Contains(int64_t pos)
const;
84 size_t Cardinality()
const;
97 void ForEach(
const std::function<
void(int64_t)>& fn)
const;
100 size_t SerializedSizeInBytes()
const;
103 Result<std::string> Serialize()
const;
106 static Result<RoaringPositionBitmap> Deserialize(std::string_view bytes);
110 std::unique_ptr<Impl> impl_;
An Expression that represents a logical OR operation between two expressions.
Definition expression.h:215
A bitmap that supports positive 64-bit positions, optimized for cases where most positions fit in 32 ...
Definition roaring_position_bitmap.h:48
Definition roaring_position_bitmap.cc:62