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

File offset and size descriptor for a single data page. More...

#include <column_index.hpp>

Public Member Functions

void serialize (thrift::CompactEncoder &enc) const
 Serialize this PageLocation to a Thrift compact encoder.
 
void deserialize (thrift::CompactDecoder &dec)
 Deserialize this PageLocation from a Thrift compact decoder.
 

Public Attributes

int64_t offset = 0
 Absolute file offset of the page header.
 
int32_t compressed_page_size = 0
 Size of the page in compressed bytes.
 
int64_t first_row_index = 0
 First row in this page (relative to row group).
 

Detailed Description

File offset and size descriptor for a single data page.

Used by OffsetIndex to record the location of each page within the Parquet file, enabling random access into column chunks without sequential scanning.

Definition at line 35 of file column_index.hpp.

Member Function Documentation

◆ deserialize()

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

Deserialize this PageLocation from a Thrift compact decoder.

Parameters
decThe decoder to read from.

Definition at line 63 of file column_index.hpp.

◆ serialize()

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

Serialize this PageLocation to a Thrift compact encoder.

Parameters
encThe encoder to write to.

Definition at line 42 of file column_index.hpp.

Member Data Documentation

◆ compressed_page_size

int32_t signet::forge::PageLocation::compressed_page_size = 0

Size of the page in compressed bytes.

Definition at line 37 of file column_index.hpp.

◆ first_row_index

int64_t signet::forge::PageLocation::first_row_index = 0

First row in this page (relative to row group).

Definition at line 38 of file column_index.hpp.

◆ offset

int64_t signet::forge::PageLocation::offset = 0

Absolute file offset of the page header.

Definition at line 36 of file column_index.hpp.


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