iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::avro::HasIdVisitor Class Reference

A visitor that checks the presence of field IDs in an Avro schema. More...

#include <avro_schema_util_internal.h>

Public Member Functions

Status Visit (const ::avro::NodePtr &node)
 Visit an Avro node to check for field IDs.
 
Status Visit (const ::avro::ValidSchema &schema)
 Visit an Avro schema to check for field IDs.
 
Status Visit (const ::avro::Schema &node)
 Visit an Avro schema to check for field IDs.
 
bool AllHaveIds () const
 Check if all fields in the visited schema have field IDs.
 
bool HasNoIds () const
 Check if all fields in the visited schema have field IDs.
 

Detailed Description

A visitor that checks the presence of field IDs in an Avro schema.

Member Function Documentation

◆ AllHaveIds()

bool iceberg::avro::HasIdVisitor::AllHaveIds ( ) const
inline

Check if all fields in the visited schema have field IDs.

Returns
True if all fields have IDs, false otherwise.

◆ HasNoIds()

bool iceberg::avro::HasIdVisitor::HasNoIds ( ) const
inline

Check if all fields in the visited schema have field IDs.

Returns
True if all fields have IDs, false otherwise.

◆ Visit() [1/3]

Status iceberg::avro::HasIdVisitor::Visit ( const ::avro::NodePtr &  node)

Visit an Avro node to check for field IDs.

Parameters
nodeThe Avro node to visit.
Returns
Status indicating success or an error if unsupported Avro types are encountered.

◆ Visit() [2/3]

Status iceberg::avro::HasIdVisitor::Visit ( const ::avro::Schema &  node)

Visit an Avro schema to check for field IDs.

Parameters
schemaThe Avro schema to visit.
Returns
Status indicating success or an error if unsupported Avro types are encountered.

◆ Visit() [3/3]

Status iceberg::avro::HasIdVisitor::Visit ( const ::avro::ValidSchema &  schema)

Visit an Avro schema to check for field IDs.

Parameters
schemaThe Avro schema to visit.
Returns
Status indicating success or an error if unsupported Avro types are encountered.

The documentation for this class was generated from the following files: