ray.data.Datasource#
- class ray.data.Datasource[source]#
Bases:
_DatasourceProjectionPushdownMixin
Interface for defining a custom
Dataset
datasource.To read a datasource into a dataset, use
read_datasource()
.Methods
Deprecated: Implement
get_read_tasks()
andestimate_inmemory_data_size()
instead.Return an estimate of the in-memory data size, or None if unknown.
Retrurns current projection
Return a human-readable name for this datasource.
Execute the read and return read tasks.
Deprecated: Implement
get_read_tasks()
andestimate_inmemory_data_size()
instead.Returns
True
in caseDatasource
supports projection operation being pushed down into the reading layerAttributes
If
False
, only launch read tasks on the driver's node.