YAZ  5.23.1
Functions
rpn2solr.h File Reference

Header for RPN to SOLR tranform. More...

#include <yaz/z-core.h>
#include <yaz/solr.h>
#include <yaz/wrbuf.h>

Go to the source code of this file.

Functions

int solr_transform_rpn2solr_stream_r (solr_transform_t ct, WRBUF addinfo, void(*pr)(const char *buf, void *client_data), void *client_data, Z_RPNQuery *q)
 transforms RPN query to SOLR output stream (re-entrant) More...
 
int solr_transform_rpn2solr_stream (solr_transform_t ct, void(*pr)(const char *buf, void *client_data), void *client_data, Z_RPNQuery *q)
 transforms RPN query to SOLR output stream (NOT re-entrant) More...
 
int solr_transform_rpn2solr_wrbuf (solr_transform_t ct, WRBUF w, Z_RPNQuery *q)
 transforms RPN query to SOLR WRBUF More...
 
const char * solr_lookup_reverse (solr_transform_t ct, const char *category, Z_AttributeList *attributes)
 find a pattern that has a subset of attributes More...
 

Detailed Description

Header for RPN to SOLR tranform.

Definition in file rpn2solr.h.

Function Documentation

const char* solr_lookup_reverse ( solr_transform_t  ct,
const char *  category,
Z_AttributeList attributes 
)

find a pattern that has a subset of attributes

Parameters
ctSOLR transform handle
categorypattern category
attributesRPN attributes
Returns
pattern value or NULL if not found

Definition at line 57 of file solrtransform.c.

References cql_lookup_reverse().

Referenced by check_range(), rpn2solr_attr(), and rpn2solr_simple().

int solr_transform_rpn2solr_stream ( solr_transform_t  ct,
void(*)(const char *buf, void *client_data)  pr,
void *  client_data,
Z_RPNQuery q 
)

transforms RPN query to SOLR output stream (NOT re-entrant)

Parameters
ctSOLR transform handle
prprint function
client_dataopaque data to be passed to print handler
qRPN Query
Return values
0success
!=0failure (error code)

Definition at line 414 of file rpn2solr.c.

References solr_transform_rpn2solr_stream_r(), solr_transform_set_error(), wrbuf_alloc(), wrbuf_cstr(), wrbuf_destroy(), and wrbuf_len.

Referenced by solr_transform_rpn2solr_wrbuf().

int solr_transform_rpn2solr_stream_r ( solr_transform_t  ct,
WRBUF  addinfo,
void(*)(const char *buf, void *client_data)  pr,
void *  client_data,
Z_RPNQuery q 
)

transforms RPN query to SOLR output stream (re-entrant)

Parameters
ctSOLR transform handle
addinfoadditional info on error
prprint function
client_dataopaque data to be passed to print handler
qRPN Query
Return values
0success
!=0failure (error code)

Definition at line 401 of file rpn2solr.c.

References rpn2solr_structure(), Z_RPNQuery::RPNStructure, and wrbuf_rewind().

Referenced by solr_transform_rpn2solr_stream().

int solr_transform_rpn2solr_wrbuf ( solr_transform_t  ct,
WRBUF  w,
Z_RPNQuery q 
)

transforms RPN query to SOLR WRBUF

Parameters
ctSOLR transform handle
wWRBUF handle for result
qRPN Query
Return values
0success
!=0failure (error code)

Definition at line 427 of file rpn2solr.c.

References solr_transform_rpn2solr_stream(), and wrbuf_vp_puts().