get_n_columns


Description:

[ Version ( since = "8.0.0" ) ]
public int get_n_columns ()

Parameters:

this

A FileMetadata.

Returns:

The number of top-level columns in the schema.

Parquet thrift definition requires that nested schema elements are flattened. This method returns the number of columns in the un-flattened version.