iceberg-cpp
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
schema_util.h File Reference

Provide schema projection utilities. More...

#include <memory>
#include <string>
#include <variant>
#include <vector>
#include "iceberg/expression/literal.h"
#include "iceberg/iceberg_export.h"
#include "iceberg/result.h"
#include "iceberg/type_fwd.h"

Go to the source code of this file.

Classes

struct  iceberg::FieldProjection
 A field schema partner to carry projection information. More...
 
struct  iceberg::FieldProjection::ExtraAttributes
 Format-specific attributes for the field. For example, for Parquet it might store column id and level info of the projected leaf field. More...
 
struct  iceberg::SchemaProjection
 A schema partner to carry projection information. More...
 

Namespaces

namespace  iceberg
 Core Apache Iceberg C++ APIs.
 

Functions

ICEBERG_EXPORT Result< SchemaProjectioniceberg::Project (const Schema &expected_schema, const Schema &source_schema, bool prune_source)
 Project the expected schema on top of the source schema.
 
ICEBERG_EXPORT std::string_view iceberg::ToString (FieldProjection::Kind kind)
 
ICEBERG_EXPORT std::string iceberg::ToString (const FieldProjection &projection)
 
ICEBERG_EXPORT std::string iceberg::ToString (const SchemaProjection &projection)
 

Detailed Description

Provide schema projection utilities.