|
iceberg-cpp
|
Define macros for generating type visitors. More...
Go to the source code of this file.
Namespaces | |
| namespace | iceberg |
| Core Apache Iceberg C++ APIs. | |
Macros | |
| #define | ICEBERG_GENERATE_FOR_ALL_TYPES(ACTION) |
| #define | ICEBERG_TYPE_SWITCH_WITH_PRIMITIVE_DEFAULT(ACTION) |
| Generate switch-case for schema visitor pattern. | |
Define macros for generating type visitors.
| #define ICEBERG_GENERATE_FOR_ALL_TYPES | ( | ACTION | ) |
| #define ICEBERG_TYPE_SWITCH_WITH_PRIMITIVE_DEFAULT | ( | ACTION | ) |
Generate switch-case for schema visitor pattern.
This macro generates switch cases that dispatch to visitor methods based on type:
Variant is dispatched explicitly because it is neither a nested nor a primitive type, so it must not be routed into the primitive default (which would cast it to PrimitiveType).