ray.data.random_access_dataset.RandomAccessDataset#

class ray.data.random_access_dataset.RandomAccessDataset(ds: Dataset, key: str, num_workers: int)[source]#

A class that provides distributed, random access to a Dataset.

See: Dataset.to_random_access_dataset().

PublicAPI (alpha): This API is in alpha and may change before becoming stable.

Methods

__init__

Construct a RandomAccessDataset (internal API).

get_async

Asynchronously finds the record for a single key.

multiget

Synchronously find the records for a list of keys.

stats

Returns a string containing access timing information.