etl_lib.data_sink.CypherBatchSink module

class CypherBatchSink(context, task, predecessor, query, **kwargs)[source]

Bases: BatchProcessor

BatchProcessor to write batches of data to a Neo4j database.

Parameters:
__init__(context, task, predecessor, query, **kwargs)[source]

Constructs a new CypherBatchSink.

Parameters:
get_batch(max_batch_size)[source]

Run the Cypher query for each incoming batch. :type max_batch_size: int :param max_batch_size: The maximum batch size to use when requesting from predecessor.

Return type:

Generator[BatchResults, None, None]

Returns:

Generator[BatchResults, None, None]

Parameters:

max_batch_size (int)