OffsetIndex
Read onlyYes
FinalYes
Properties
- $pages : array<string|int, mixed>
Methods
- __construct() : mixed
- fits() : bool
- Whether the pages lie inside the chunk, each after the previous and a byte at least, and split a row group of $rows rows: the first starts at row 0, each later one after the previous, all before the group's end.
- fromThrift() : self
- pageOf() : int
- The page holding row $row of the row group.
- pageRows() : int
- Rows of page $page, the last page ending at the row group's $rowGroupRows.
- toThrift() : OffsetIndex
Properties
$pages
public
array<string|int, mixed>
$pages
Methods
__construct()
public
__construct(array<int, PageLocation> $pages) : mixed
Parameters
- $pages : array<int, PageLocation>
fits()
Whether the pages lie inside the chunk, each after the previous and a byte at least, and split a row group of $rows rows: the first starts at row 0, each later one after the previous, all before the group's end.
public
fits(ColumnChunk $chunk, int $rows) : bool
Parameters
- $chunk : ColumnChunk
- $rows : int
Return values
boolfromThrift()
public
static fromThrift(OffsetIndex $index) : self
Parameters
- $index : OffsetIndex
Return values
selfpageOf()
The page holding row $row of the row group.
public
pageOf(int $row) : int
Parameters
- $row : int
Return values
intpageRows()
Rows of page $page, the last page ending at the row group's $rowGroupRows.
public
pageRows(int $page, int $rowGroupRows) : int
Parameters
- $page : int
- $rowGroupRows : int
Return values
inttoThrift()
public
toThrift() : OffsetIndex