ray.data.block.BlockMetadata#

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

Metadata about the block.

num_rows#

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

Type

Optional[int]

size_bytes#

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

Type

Optional[int]

schema#

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

Type

Optional[Union[type, pyarrow.lib.Schema]]

input_files#

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

Type

Optional[List[str]]

exec_stats#

Execution stats for this block.

Type

Optional[ray.data.block.BlockExecStats]

DeveloperAPI: This API may change across minor Ray releases.

__init__(num_rows: Optional[int], size_bytes: Optional[int], schema: Optional[Union[type, pyarrow.lib.Schema]], input_files: Optional[List[str]], exec_stats: Optional[ray.data.block.BlockExecStats]) None#

Methods

__init__(num_rows, size_bytes, schema, ...)

Attributes

num_rows

size_bytes

schema

input_files

exec_stats