FrameBound
Read onlyYes
FinalYes
Properties
- $offset : int|null
- $type : FrameBoundType
Methods
- __construct() : mixed
- fromArray() : self
- normalize() : array{type: string, offset: null|int}
- resolve() : int
- Resolve this bound to an index in the sorted partition. Intentionally not clamped - RowsFrame needs the unclamped value to detect a frame lying entirely outside the partition.
Properties
$offset
public
int|null
$offset
= null
$type
public
FrameBoundType
$type
Methods
__construct()
public
__construct(FrameBoundType $type[, int|null $offset = null ]) : mixed
Parameters
- $type : FrameBoundType
- $offset : int|null = null
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
-
the shape of normalize()
Return values
selfnormalize()
public
normalize() : array{type: string, offset: null|int}
Return values
array{type: string, offset: null|int}resolve()
Resolve this bound to an index in the sorted partition. Intentionally not clamped - RowsFrame needs the unclamped value to detect a frame lying entirely outside the partition.
public
resolve(int $index, int $lastIndex) : int
Parameters
- $index : int
- $lastIndex : int