ray.data.random_access_dataset.RandomAccessDataset#

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

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

See: Dataset.to_random_access_dataset().

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

__init__(dataset: Dataset[T], key: str, num_workers: int)[source]#

Construct a RandomAccessDataset (internal API).

The constructor is a private API. Use dataset.to_random_access_dataset() to construct a RandomAccessDataset.

Methods

__init__(dataset, key, num_workers)

Construct a RandomAccessDataset (internal API).

get_async(key)

Asynchronously finds the record for a single key.

multiget(keys)

Synchronously find the records for a list of keys.

stats()

Returns a string containing access timing information.