|
YAZ 5.35.1
|
Header for RPN to CQL tranform. More...
Go to the source code of this file.
Functions | |
| int | cql_transform_rpn2cql_stream_r (cql_transform_t ct, WRBUF addinfo, void(*pr)(const char *buf, void *client_data), void *client_data, Z_RPNQuery *q) |
| transforms RPN query to CQL output stream (re-entrant) | |
| int | cql_transform_rpn2cql_stream (cql_transform_t ct, void(*pr)(const char *buf, void *client_data), void *client_data, Z_RPNQuery *q) |
| transforms RPN query to CQL output stream (NOT re-entrant) | |
| int | cql_transform_rpn2cql_wrbuf (cql_transform_t ct, WRBUF w, Z_RPNQuery *q) |
| transforms RPN query to CQL WRBUF (NOT re-entrant) | |
| const char * | cql_lookup_reverse (cql_transform_t ct, const char *category, Z_AttributeList *attributes) |
| find a pattern that has a subset of attributes | |
Header for RPN to CQL tranform.
Definition in file rpn2cql.h.
| const char * cql_lookup_reverse | ( | cql_transform_t | ct, |
| const char * | category, | ||
| Z_AttributeList * | attributes | ||
| ) |
find a pattern that has a subset of attributes
| ct | CQL transform handle |
| category | pattern category |
| attributes | RPN attributes |
Definition at line 335 of file cqltransform.c.
References cql_prop_entry::attr_list, Z_AttributeList::attributes, Z_AttributeElement::attributeSet, compare_attr(), cql_transform_t_::entry, cql_prop_entry::next, Z_AttributeList::num_attributes, oid_oidcmp(), cql_prop_entry::pattern, and yaz_oid_attset_bib_1.
Referenced by rpn2cql_attr(), and solr_lookup_reverse().
| int cql_transform_rpn2cql_stream | ( | cql_transform_t | ct, |
| void(*)(const char *buf, void *client_data) | pr, | ||
| void * | client_data, | ||
| Z_RPNQuery * | q | ||
| ) |
transforms RPN query to CQL output stream (NOT re-entrant)
| ct | CQL transform handle |
| pr | print function |
| client_data | opaque data to be passed to print handler |
| q | RPN Query |
| 0 | success |
| !=0 | failure (error code) |
Definition at line 368 of file rpn2cql.c.
References cql_transform_rpn2cql_stream_r(), cql_transform_set_error(), wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), and wrbuf_len.
Referenced by cql_transform_rpn2cql_wrbuf().
| int cql_transform_rpn2cql_stream_r | ( | cql_transform_t | ct, |
| WRBUF | addinfo, | ||
| void(*)(const char *buf, void *client_data) | pr, | ||
| void * | client_data, | ||
| Z_RPNQuery * | q | ||
| ) |
transforms RPN query to CQL output stream (re-entrant)
| ct | CQL transform handle |
| addinfo | for additional error info |
| pr | print function |
| client_data | opaque data to be passed to print handler |
| q | RPN Query |
| 0 | success |
| !=0 | failure (error code) |
Definition at line 354 of file rpn2cql.c.
References rpn2cql_structure(), Z_RPNQuery::RPNStructure, and wrbuf_rewind().
Referenced by cql_transform_rpn2cql_stream().
| int cql_transform_rpn2cql_wrbuf | ( | cql_transform_t | ct, |
| WRBUF | w, | ||
| Z_RPNQuery * | q | ||
| ) |
transforms RPN query to CQL WRBUF (NOT re-entrant)
| ct | CQL transform handle |
| w | WRBUF handle for result |
| q | RPN Query |
| 0 | success |
| !=0 | failure (error code) |
Definition at line 382 of file rpn2cql.c.
References cql_transform_rpn2cql_stream(), and wrbuf_vp_puts().