FileBasedDatasource#
- class ray.data.datasource.FileBasedDatasource(*args, **kwargs)[source]#
Bases:
DatasourceFile-based datasource for reading files.
Don’t use this class directly. Instead, subclass it and implement
_read_stream().DeveloperAPI: This API may change across minor Ray releases.
Methods
Apply a predicate to this datasource.
Apply a projection (column selection) to this datasource.
Deprecated: Implement
get_read_tasks()andestimate_inmemory_data_size()instead.Return a human-readable name for this datasource.
Return the projection map (always an identity mapping).
Estimate the in-memory data size with unpickling refused.
Call
get_read_tasks()with unpickling refused.Deprecated: Implement
get_read_tasks()andestimate_inmemory_data_size()instead.Resolves the compression format for a stream.
Returns
Truein caseDatasourcesupports projection operation being pushed down into the reading layerAttributes
Return True if the datasource should create a legacy reader
If
False, only launch read tasks on the driver's node.