Skip to main content

ParallelQuerySet

ParallelQuerySet​

ParallelQuerySet(client: Connector, dry_run: bool = False)

Bases: ParallelQuery

Parallel and Batch Set Multi-Querier for ApertureDB This class provides the mechanism to run multiple queries over a single csv. Per-query actions are done by ParallelQuery.

Parameters:

NameTypeDescriptionDefault
clientConnector

The ApertureDB Connector

required
dry_runbool

If True, no queries are executed. Defaults to False.

False

do_batch​

do_batch(client: Connector, batch_start: int, data: List[Tuple[Commands, Blobs]]) -> None

This is an override of ParallelQuery.do_batch.

This is the per-worker function which is the entry-point to a unit of work.

Parameters:

NameTypeDescriptionDefault
clientConnector

The ApertureDB Connector

required
dataList[Tuple[Query, Blobs]]

A list of tuples, each containing a list of commands and a list of blobs

required