Datasink#
- class ray.data.Datasink[source]#
Bases:
Generic[WriteReturnType]Interface for defining write-related logic.
If you want to write data to something that isn’t built-in, subclass this class and call
write_datasink().DeveloperAPI: This API may change across minor Ray releases.
Methods
Return a human-readable name for this datasink.
Callback for when a write job completes.
Callback for when a write job fails.
Callback for when a write job starts.
Write blocks.
Attributes
The target number of bytes to pass to each
writecall.The target number of rows to pass to each
write()call.If
False, only launch write tasks on the driver's node.