BucketingConfig implements Describable
Read onlyYes
FinalYes
Interfaces
Properties
- $batchSize : int
- $bucketsCount : int
- $memoryLimit : Unit
- $storage : RowsStorage
Methods
- __construct() : mixed
- describe() : null|Description
- null when the storage does not describe (a PSR cache, a user storage).
- fromDescription() : static
- spilling() : RowsStorage
- The storage behind the memory limit - a resident storage already holds everything in memory.
Properties
$batchSize
public
int
$batchSize
$bucketsCount
public
int
$bucketsCount
$memoryLimit
public
Unit
$memoryLimit
$storage
public
RowsStorage
$storage
Methods
__construct()
public
__construct(RowsStorage $storage, int<1, max> $bucketsCount, int<1, max> $batchSize, Unit $memoryLimit) : mixed
Parameters
- $storage : RowsStorage
- $bucketsCount : int<1, max>
- $batchSize : int<1, max>
- $memoryLimit : Unit
describe()
null when the storage does not describe (a PSR cache, a user storage).
public
describe() : null|Description
Return values
null|Description —null when this instance cannot cross a process boundary (a live client, a custom collaborator)
fromDescription()
public
static fromDescription(array<string|int, mixed> $data, Rebuild $rebuild) : static
Parameters
- $data : array<string|int, mixed>
- $rebuild : Rebuild
Return values
staticspilling()
The storage behind the memory limit - a resident storage already holds everything in memory.
public
spilling(Backend $backend) : RowsStorage
Parameters
- $backend : Backend