73#ifndef __ADS_CompressedPGMIndex
74 #define __ADS_CompressedPGMIndex
107template<
class K , std::
size_t E = 64 >
108 requires std::is_arithmetic_v< K >
112 static_assert( E >= 1 ,
"the error is at least 1" );
190 [[nodiscard]] std::size_t
size(
void )
const;
193 [[nodiscard]]
bool empty(
void )
const;
199 [[nodiscard]] std::size_t
slopes(
void )
const;
202 [[nodiscard]] std::size_t
bytes(
void )
const;
207 static constexpr std::string_view
persistName =
"CompressedPGMIndex";
210 [[nodiscard]]
static constexpr std::uint64_t
persistTag(
void ) {
211 return( detail::persistMix( {
sizeof( K ) , std::is_signed_v< K > ,
212 std::is_floating_point_v< K > , E } ) );
222 std::vector< K , HugePageAllocator< K > > f_A;
226 std::vector< float > f_slope;
230 std::int64_t f_dmin = 0;
242#include "ADS/search/impl/CompressedPGMIndex.tpp"
The vector of bits on which the succinct structures and the integer codes of ADS are built: the bits ...
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The Elias-Fano representation of a non-decreasing sequence of integers in (chapters 11,...
An allocator for the large blocks of a structure, beyond the book: a request of at least one huge pag...
A file mapped in memory, shared by the structures that are read from it in place [see Persistence....
The piecewise geometric model index of Ferragina and Vinciguerra, beyond the book: a learned index on...
a vector of bits packed in words of 64 bits
Definition BitVector.h:479
bool contains(const K &v) const
true if is an item, by lowerBound( v )
std::size_t lowerBound(const K &v) const
the first place of an item not smaller than , size() if none
static constexpr std::uint64_t persistTag(void)
the type of the keys and the error, in a file
Definition CompressedPGMIndex.h:210
std::size_t size(void) const
the number of the items
std::size_t slopes(void) const
the distinct slopes,
CompressedPGMIndex(void)=default
an empty index
void persist(A &a)
the members written to, or read from, the archive [see Persistence.h]
std::size_t segments(void) const
the segments,
CompressedPGMIndex(std::vector< K > A)
the index on the sorted items of
const K & operator[](std::size_t i) const
the item of place
bool empty(void) const
true if there are no items
std::size_t bytes(void) const
the bytes of the index, the items aside
static constexpr std::string_view persistName
the name of the structure in a file [see Persistence.h]
Definition CompressedPGMIndex.h:207
K Item
the type of the items
Definition CompressedPGMIndex.h:116
the PGM-index on a sorted array of arithmetic keys K, with the error at the last level and at the o...
Definition PGMIndex.h:124
BasicEliasFano< false > EliasFano
Elias-Fano with the inventories of built in the constructor, the fastest access() and nextGEQ().
Definition EliasFano.h:291