A visitor that checks the presence of field IDs in an Avro schema.
More...
#include <avro_schema_util_internal.h>
|
| 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.
|
| |
A visitor that checks the presence of field IDs in an Avro schema.
◆ 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
-
| node | The 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
-
| schema | The 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
-
| schema | The 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: