Skip to content

RecordSet

toksearch.record.record_set.RecordSet

Bases: ABC

Abstract base class for a set of Records

This class provides a common interface for a set of Records that are produced by the various execution backends.

Methods:

Name Description
__len__

Returns the number of records in the set

__getitem__

Returns a record by index

__iter__

Iterates over the records in the set as a generator

map

Applies one or more functions to the records

cleanup

Cleans up any resources used by the RecordSet, such as shutting down a SparkContext or Ray cluster