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.
QueryResults Struct Reference

A datatype for holding an array of the results of a search on an iRODS server. More...

#include <query.h>

Collaboration diagram for QueryResults:
[legend]

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...
 
LinkedListGetQueryResultsPaths (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...
 
QueryResultqr_values_p
 The array of results. More...
 

Detailed Description

A datatype for holding an array of the results of a search on an iRODS server.

Member Function Documentation

◆ PrintQueryResults()

void PrintQueryResults ( FILE *  out_f,
const QueryResults *const  result_p 
)

Print a QueryResults to an output FILE.

Parameters
out_fThe FILE to write to.
result_pThe QueryResults to print.

◆ PrintQueryResult()

void PrintQueryResult ( FILE *  out_f,
const QueryResult *const  result_p 
)

Print a QueryResult to an output FILE.

Parameters
out_fThe FILE to write to.
result_pThe QueryResult to print.

◆ FreeQueryResults()

void FreeQueryResults ( QueryResults result_p)

Free a QueryResults.

Parameters
result_pThe QueryResults to free.

◆ GetQueryResultAsJSON()

json_t * GetQueryResultAsJSON ( const QueryResults *const  results_p)

Get the json representation of a QueryResults.

Parameters
results_pThe QueryResults to get the json for.
Returns
The json_t object representing the QueryResults or NULL upon error.

◆ GetQueryResultAsResourcesJSON()

json_t * GetQueryResultAsResourcesJSON ( const QueryResults *const  qrs_p)

Get the json representation of a QueryResults in the format of a Resource.

Parameters
qrs_pThe QueryResults to get the json for.
Returns
The json_t object representing the QueryResults or NULL upon error.

◆ GetQueryResultsPaths()

LinkedList * GetQueryResultsPaths ( const QueryResults *const  qrs_p)

Get the full path to all collections and data objects in the given QueryResults.

Parameters
qrs_pThe QueryResults to get the values from.
Returns
A LinkedList of StringListNodes where each node contains the full path to each of the values in the given QueryResults.

Field Documentation

◆ qr_num_results

int qr_num_results

The number of results in the array.

◆ qr_values_p

QueryResult* qr_values_p

The array of results.


The documentation for this struct was generated from the following file: