kv_avro_get_schema()

#include <kvstore.h>

kv_error_t 
kv_avro_get_schema(kv_value_t *value,
                   avro_schema_t *schema);

Returns the schema used by the value returned from the store. You must call avro_schema_decref() on the returned schema when done.

In Avro terminology, the retrieved schema is the writer schema used to serialize the value prior to writing it to the store.

Parameters

value

The value parameter is the value from which you want to retrieve the schema.

schema

The schema parameter is the writer schema retrieved from the store. When you are done with this schema, call avro_schema_decref() on it.

See Also

Avro Management Functions