ray.data.Datasource#
- class ray.data.Datasource[source]#
Bases:
_DatasourceProjectionPushdownMixin,_DatasourcePredicatePushdownMixinInterface for defining a custom
Datasetdatasource.To read a datasource into a dataset, use
read_datasource().Methods
Initialize the datasource and its mixins.
Apply a predicate to this datasource.
Apply a projection to this datasource.
Deprecated: Implement
get_read_tasks()andestimate_inmemory_data_size()instead.Return an estimate of the in-memory data size, or None if unknown.
Return the column renames from the projection map.
Return a human-readable name for this datasource.
Return the projection map (original column names -> final column names).
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.