5 Struct AVRO_SCHEMA
gullradriel edited this page 2026-10-09 00:55:18 +02:00

AVRO_SCHEMA

Module: AVRO: binary format encoding/decoding with JSON conversion

Avro schema definition. More...

#include "n_avro.h"

Public Attributes

Name
AVRO_SCHEMA * values
value schema (for map)
AVRO_SCHEMA ** union_branches
union branch schemas
AVRO_TYPE type
schema type
char ** symbols
enum symbols
size_t nb_symbols
number of enum symbols
size_t nb_fields
number of fields (for record)
size_t nb_branches
number of union branches
char * name
name (for record, enum, fixed)
AVRO_SCHEMA * items
item schema (for array)
size_t fixed_size
fixed size
AVRO_FIELD * fields
namespace (for record, enum)

Detailed Description

struct AVRO_SCHEMA;

Avro schema definition.

Forward declaration.

Public Attributes Documentation

variable values

AVRO_SCHEMA * values;

value schema (for map)

variable union_branches

AVRO_SCHEMA ** union_branches;

union branch schemas

variable type

AVRO_TYPE type;

schema type

variable symbols

char ** symbols;

enum symbols

variable nb_symbols

size_t nb_symbols;

number of enum symbols

variable nb_fields

size_t nb_fields;

number of fields (for record)

variable nb_branches

size_t nb_branches;

number of union branches

variable name

char * name;

name (for record, enum, fixed)

variable items

AVRO_SCHEMA * items;

item schema (for array)

variable fixed_size

size_t fixed_size;

fixed size

variable fields

AVRO_FIELD * fields;

namespace (for record, enum)

fields array (for record)