HashBucketing 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> $bucketsCount, Hasher $hasher, RandomValueGenerator $random[, string $namespace = 'bucket' ][, bool $nullOnMissing = false ]) : mixed
Parameters
- $by : array<int, Reference>
- $bucketsCount : int<1, max>
- $hasher : Hasher
- $random : RandomValueGenerator
- $namespace : string = 'bucket'
- $nullOnMissing : bool = false
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