Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::OffsetIndex Struct Reference

Page locations for random access within a column chunk. More...

#include <column_index.hpp>

Public Member Functions

bool valid () const
 Check if deserialization was successful.
 
void serialize (thrift::CompactEncoder &enc) const
 Serialize this OffsetIndex to a Thrift compact encoder.
 
void deserialize (thrift::CompactDecoder &dec)
 Deserialize this OffsetIndex from a Thrift compact decoder.
 

Public Attributes

bool valid_ = true
 False if deserialization failed (M-V7).
 
std::vector< PageLocationpage_locations
 One entry per data page.
 

Detailed Description

Page locations for random access within a column chunk.

Contains a list of PageLocation entries, one per data page in the column chunk. Written to the Parquet file after row groups to enable readers to seek directly to any page.

See also
ColumnIndex (companion structure for predicate pushdown)

Definition at line 86 of file column_index.hpp.

Member Function Documentation

◆ deserialize()

void signet::forge::OffsetIndex::deserialize ( thrift::CompactDecoder dec)
inline

Deserialize this OffsetIndex from a Thrift compact decoder.

Parameters
decThe decoder to read from.

Definition at line 112 of file column_index.hpp.

◆ serialize()

void signet::forge::OffsetIndex::serialize ( thrift::CompactEncoder enc) const
inline

Serialize this OffsetIndex to a Thrift compact encoder.

Parameters
encThe encoder to write to.

Definition at line 95 of file column_index.hpp.

◆ valid()

bool signet::forge::OffsetIndex::valid ( ) const
inline

Check if deserialization was successful.

Definition at line 91 of file column_index.hpp.

Member Data Documentation

◆ page_locations

std::vector<PageLocation> signet::forge::OffsetIndex::page_locations

One entry per data page.

Definition at line 88 of file column_index.hpp.

◆ valid_

bool signet::forge::OffsetIndex::valid_ = true

False if deserialization failed (M-V7).

Definition at line 87 of file column_index.hpp.


The documentation for this struct was generated from the following file: