kv_avro_get_current_schemas()

#include <kvstore.h>

kv_int_t 
kv_avro_get_current_schemas(kv_store_t *store,
                            avro_schema_t **schemas);

Returns all schemas currently active in the store. The return value represents the number of schemas retrieved from the store. If the retrieval effort encounters an error, the return value is less than 0.

The schema array retrieved by this function must be released using kv_avro_release_schemas(). If you want the schema to outlast the release call, copy the object and then call avro_schema_incref() on it. In this case, you are responsible for decrementing the reference using avro_schema_decref().

Parameters

store

The store parameter is the handle to the store from which you want to retrieve schemas.

schemas

The schemas parameter references memory into which a pointer to the allocated schema structure is copied.

See Also

Avro Management Functions