27 #include <string_view>
47 FIXED_LEN_BYTE_ARRAY = 7,
65 std::vector<parquet_column_schema>
children)
66 : _name{
name}, _type_kind{type}, _children{std::move(
children)}
75 [[nodiscard]]
auto name()
const {
return _name; }
82 [[nodiscard]]
auto type_kind()
const {
return _type_kind; }
89 [[nodiscard]]
auto const&
children() const& {
return _children; }
95 [[nodiscard]]
auto children() && {
return std::move(_children); }
104 [[nodiscard]]
auto const&
child(
int idx)
const& {
return children().at(idx); }
110 [[nodiscard]]
auto child(
int idx) && {
return std::move(
children().at(idx)); }
123 std::vector<parquet_column_schema> _children;
143 [[nodiscard]]
auto const&
root() const& {
return _root; }
149 [[nodiscard]]
auto root() && {
return std::move(_root); }
175 : _schema{std::move(
schema)},
178 _file_metadata{std::move(file_metadata)}
187 [[nodiscard]]
auto const&
schema()
const {
return _schema; }
196 [[nodiscard]]
auto num_rows()
const {
return _num_rows; }
209 [[nodiscard]]
auto const&
metadata()
const {
return _file_metadata; }
parquet_metadata read_parquet_metadata(source_info const &src_info)
Reads metadata of parquet dataset.
int32_t size_type
Row index type for columns and tables.
cuDF-IO API type definitions
Schema of a parquet column, including the nested columns.
auto const & child(int idx) const &
Returns schema of the child with the given index.
auto name() const
Returns parquet column name; can be empty.
auto const & children() const &
Returns schemas of all child columns.
auto children() &&
Returns schemas of all child columns.
auto num_children() const
Returns the number of child columns.
auto type_kind() const
Returns parquet type of the column.
auto child(int idx) &&
Returns schema of the child with the given index.
parquet_column_schema(std::string_view name, parquet::TypeKind type, std::vector< parquet_column_schema > children)
constructor
Schema of a parquet file.
auto root() &&
Returns the schema of the struct column that contains all columns as fields.
auto const & root() const &
Returns the schema of the struct column that contains all columns as fields.
parquet_schema(parquet_column_schema root_column_schema)
constructor
Source information for read interfaces.