Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A datatype for holding an array of the results of a search on an iRODS server. More...
#include <query.h>
Public Member Functions | |
void | PrintQueryResults (FILE *out_f, const QueryResults *const result_p) |
Print a QueryResults to an output FILE. More... | |
void | PrintQueryResult (FILE *out_f, const QueryResult *const result_p) |
Print a QueryResult to an output FILE. More... | |
void | FreeQueryResults (QueryResults *result_p) |
Free a QueryResults. More... | |
json_t * | GetQueryResultAsJSON (const QueryResults *const results_p) |
Get the json representation of a QueryResults. More... | |
json_t * | GetQueryResultAsResourcesJSON (const QueryResults *const qrs_p) |
Get the json representation of a QueryResults in the format of a Resource. More... | |
LinkedList * | GetQueryResultsPaths (const QueryResults *const qrs_p) |
Get the full path to all collections and data objects in the given QueryResults. More... | |
Data Fields | |
int | qr_num_results |
The number of results in the array. More... | |
QueryResult * | qr_values_p |
The array of results. More... | |
A datatype for holding an array of the results of a search on an iRODS server.
void PrintQueryResults | ( | FILE * | out_f, |
const QueryResults *const | result_p | ||
) |
Print a QueryResults to an output FILE.
out_f | The FILE to write to. |
result_p | The QueryResults to print. |
void PrintQueryResult | ( | FILE * | out_f, |
const QueryResult *const | result_p | ||
) |
Print a QueryResult to an output FILE.
out_f | The FILE to write to. |
result_p | The QueryResult to print. |
void FreeQueryResults | ( | QueryResults * | result_p | ) |
Free a QueryResults.
result_p | The QueryResults to free. |
json_t * GetQueryResultAsJSON | ( | const QueryResults *const | results_p | ) |
Get the json representation of a QueryResults.
results_p | The QueryResults to get the json for. |
NULL
upon error. json_t * GetQueryResultAsResourcesJSON | ( | const QueryResults *const | qrs_p | ) |
Get the json representation of a QueryResults in the format of a Resource.
qrs_p | The QueryResults to get the json for. |
NULL
upon error. LinkedList * GetQueryResultsPaths | ( | const QueryResults *const | qrs_p | ) |
Get the full path to all collections and data objects in the given QueryResults.
qrs_p | The QueryResults to get the values from. |
int qr_num_results |
The number of results in the array.
QueryResult* qr_values_p |
The array of results.