ray.data.Datasource#
- class ray.data.Datasource[source]#
Bases:
_DatasourceProjectionPushdownMixinInterface for defining a custom
Datasetdatasource.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
Truein caseDatasourcesupports projection operation being pushed down into the reading layerAttributes
If
False, only launch read tasks on the driver's node.