ray.data.block.BlockMetadata#

class ray.data.block.BlockMetadata(num_rows: int | None, size_bytes: int | None, schema: type | pyarrow.lib.Schema | None, input_files: List[str] | None, exec_stats: BlockExecStats | None)[source]#

Metadata about the block.

DeveloperAPI: This API may change across minor Ray releases.

Methods

Attributes

num_rows

The number of rows contained in this block, or None.

size_bytes

The approximate size in bytes of this block, or None.

schema

The pyarrow schema or types of the block elements, or None.

input_files

The list of file paths used to generate this block, or the empty list if indeterminate.

exec_stats

Execution stats for this block.