BatchRead
in package
BatchRead specifies the Key and bin names used in batch read commands where variable bins are needed for each key.
Table of Contents
Methods
- __construct() : mixed
- header() : BatchRead
- Ops specifies the operations to perform for every key.
- ops() : BatchRead
- Optional read policy.
Methods
__construct()
public
__construct(BatchReadPolicy $policy, Key $key, array<string|int, mixed>|null $bins) : mixed
Parameters
- $policy : BatchReadPolicy
- $key : Key
- $bins : array<string|int, mixed>|null
header()
Ops specifies the operations to perform for every key.
public
static header(BatchReadPolicy $policy, Key $key) : BatchRead
Ops are mutually exclusive with BinNames.
A binName can be emulated with GetOp(binName)
Supported by server v5.6.0+.
Parameters
- $policy : BatchReadPolicy
- $key : Key
Return values
BatchReadops()
Optional read policy.
public
static ops(BatchReadPolicy $policy, Key $key, array<string|int, mixed> $ops) : BatchRead
Parameters
- $policy : BatchReadPolicy
- $key : Key
- $ops : array<string|int, mixed>