ray.data.random_access_dataset.RandomAccessDataset
ray.data.random_access_dataset.RandomAccessDataset#
- class ray.data.random_access_dataset.RandomAccessDataset(dataset: Dataset[T], key: str, num_workers: int)[source]#
Bases:
Generic
[ray.data.block.T
]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.
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.