class SwooleTableManager

Properties

protected SwooleTableState> $states

The resolved Swoole table states.

Methods

__construct(Container $app)

No description

createState(int $rows, int $bytes, float $conflictProportion, int $hashSeed = 0)

Create a Swoole table state.

createTable(int $rows, int $bytes, float $conflictProportion)

Create a Swoole table.

get(string $name)

Get a Swoole table state by name.

resolve(string $name)

Resolve a Swoole table state by name.

array|null
getConfig(string $name)

Get the Swoole table configuration.

Details

at line 20
__construct(Container $app)

No description

Parameters

Container $app

at line 28
SwooleTableState createState(int $rows, int $bytes, float $conflictProportion, int $hashSeed = 0)

Create a Swoole table state.

Parameters

int $rows
int $bytes
float $conflictProportion
int $hashSeed

Return Value

SwooleTableState

at line 39
SwooleTable createTable(int $rows, int $bytes, float $conflictProportion)

Create a Swoole table.

Parameters

int $rows
int $bytes
float $conflictProportion

Return Value

SwooleTable

at line 56
SwooleTableState get(string $name)

Get a Swoole table state by name.

Parameters

string $name

Return Value

SwooleTableState

at line 64
protected SwooleTableState resolve(string $name)

Resolve a Swoole table state by name.

Parameters

string $name

Return Value

SwooleTableState

at line 82
protected array|null getConfig(string $name)

Get the Swoole table configuration.

Parameters

string $name

Return Value

array|null