|
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 set of SearchTerms to use when running a search. More...
#include <meta_search.h>
Public Member Functions | |
| IRodsSearch * | AllocateIRodsSearch (void) |
| Allocate an IRodsSearch. More... | |
| void | FreeIRodsSearch (IRodsSearch *search_p) |
| Free an IRodsSearch. More... | |
| void | ClearIRodsSearch (IRodsSearch *search_p) |
| Clear an IRodsSearch. More... | |
| QueryResults * | DoIRodsSearch (IRodsSearch *search_p, struct IRodsConnection *connection_p) |
| Perform an iRODS search. More... | |
| bool | AddMetadataDataAttributeSearchTerm (IRodsSearch *search_p, const char *clause_s, const char *key_s, const char *op_s, const char *value_s) |
| Create and add a SearchTerm to an IRodsSearch. More... | |
| bool | AddIRodsSearchTerm (IRodsSearch *search_p, const char *clause_s, const char *key_s, const int key_id, const char *op_s, const char *value_s, const int value_id) |
| Add a search term to an IRodsSearch. More... | |
| int32 | DetermineSearchTerms (LinkedList *terms_p, const json_t *json_p) |
| Parse a JSON fragment and add SearchTermNodes to a LinkedList. More... | |
Data Fields | |
| LinkedList * | is_search_terms_p |
| A LinkedList of SearchTermNodes. More... | |
A set of SearchTerms to use when running a search.
| IRodsSearch * AllocateIRodsSearch | ( | void | ) |
Allocate an IRodsSearch.
NULL upon error. | void FreeIRodsSearch | ( | IRodsSearch * | search_p | ) |
Free an IRodsSearch.
| search_p | The IRodsSearch to free. |
| void ClearIRodsSearch | ( | IRodsSearch * | search_p | ) |
Clear an IRodsSearch.
| search_p | The IRodsSearch to clear. |
| QueryResults * DoIRodsSearch | ( | IRodsSearch * | search_p, |
| struct IRodsConnection * | connection_p | ||
| ) |
Perform an iRODS search.
| search_p | The IRodsSearch to perform. |
| connection_p | The connection to the iRODS server to perform the search on. |
| bool AddMetadataDataAttributeSearchTerm | ( | IRodsSearch * | search_p, |
| const char * | clause_s, | ||
| const char * | key_s, | ||
| const char * | op_s, | ||
| const char * | value_s | ||
| ) |
Create and add a SearchTerm to an IRodsSearch.
This adds a search term in the form of a key op value triplet as described in AddIRodsSearchTerm
| search_p | The IRodsSearch to add the SearchTerm to. |
| clause_s | The search term's clause. |
| key_s | The search term's key. |
| op_s | The search term's operation such as "=", "<", etc. |
| value_s | The search term's value. |
true if the search term was added successfully, false otherwise.| bool AddIRodsSearchTerm | ( | IRodsSearch * | search_p, |
| const char * | clause_s, | ||
| const char * | key_s, | ||
| const int | key_id, | ||
| const char * | op_s, | ||
| const char * | value_s, | ||
| const int | value_id | ||
| ) |
Add a search term to an IRodsSearch.
This adds a search term in the form of a key op value triplet. For example key could be "foo", value = "bar" and op = "="
| search_p | The IRodsSearch to add the term to. |
| clause_s | The search term's clause. |
| key_s | The search term's key. |
| key_id | The id of the key's column. |
| op_s | The search term's operation such as "=", "<", etc. |
| value_s | The search term's value. |
| value_id | The id of the value's column. |
true if the search term was added successfully, false otherwise. | int32 DetermineSearchTerms | ( | LinkedList * | terms_p, |
| const json_t * | json_p | ||
| ) |
Parse a JSON fragment and add SearchTermNodes to a LinkedList.
| terms_p | The LinkedList where the SearchTermNodes will get added. |
| json_p | The JSON fragment to parse. The JSON is of the form: |
| LinkedList* is_search_terms_p |
A LinkedList of SearchTermNodes.