SortedRunBucketing implements BucketingStrategy
FinalYes
Interfaces
Methods
- __construct() : mixed
- bucketize() : Generator<string|int, Bucket>
- Consumes the row stream, spills bucket data into the storage and yields each Bucket once it is complete - the strategy alone decides when and how buckets are stored.
Methods
__construct()
public
__construct(array<int, Reference> $by, int<1, max> $runSize, RandomValueGenerator $random) : mixed
Parameters
- $by : array<int, Reference>
- $runSize : int<1, max>
- $random : RandomValueGenerator
bucketize()
Consumes the row stream, spills bucket data into the storage and yields each Bucket once it is complete - the strategy alone decides when and how buckets are stored.
public
bucketize(Generator<string|int, Rows> $rows, BucketsStorage $storage) : Generator<string|int, Bucket>
Parameters
- $rows : Generator<string|int, Rows>
- $storage : BucketsStorage