Flow PHP

MemoryRowsStorage implements Describable, ResidentRowsStorage

FinalYes

Interfaces

Describable
ResidentRowsStorage

Methods

append()  : void
An empty batch still makes has() answer true for the key.
close()  : void
Finishes the key's pending writes so another process can read it; a no-op for a key with none.
describe()  : null|Description
A worker's memory storage is its own, empty.
fromDescription()  : static
get()  : Generator<string|int, Rows>
Yields the key's rows back in batches - batch shape is storage-defined, consumers must not assume any particular batch size.
has()  : bool
remove()  : void
rows()  : Cardinality
schema()  : Schema|null
The schema every batch of the key fits; null for a missing key.

Methods

append()

An empty batch still makes has() answer true for the key.

public append(string $key, Rows $rows) : void
Parameters
$key : string
$rows : Rows

close()

Finishes the key's pending writes so another process can read it; a no-op for a key with none.

public close(string $key) : void
Parameters
$key : string

describe()

A worker's memory storage is its own, empty.

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
static

get()

Yields the key's rows back in batches - batch shape is storage-defined, consumers must not assume any particular batch size.

public get(string $key) : Generator<string|int, Rows>
Parameters
$key : string
Return values
Generator<string|int, Rows>

has()

public has(string $key) : bool
Parameters
$key : string
Return values
bool

schema()

The schema every batch of the key fits; null for a missing key.

public schema(string $key) : Schema|null
Parameters
$key : string
Return values
Schema|null
On this page

Search results