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.
|
#include <lucene_facet.h>
Public Member Functions | |
GRASSROOTS_LUCENE_API LuceneFacet * | AllocateLuceneFacet (const char *name_s, const uint32 count) |
Allocate a LuceneFacet to store search result metadata. More... | |
GRASSROOTS_LUCENE_API void | FreeLuceneFacet (LuceneFacet *facet_p) |
Free a LuceneFacet. More... | |
GRASSROOTS_LUCENE_API LuceneFacetNode * | AllocateLuceneFacetNode (LuceneFacet *facet_p) |
Allocate a LuceneFacetNode. More... | |
GRASSROOTS_LUCENE_API LuceneFacetNode * | AllocateLuceneFacetNodeByParts (const char *name_s, const uint32 count) |
Allocate a LuceneFacetNode. More... | |
GRASSROOTS_LUCENE_API void | FreeLuceneFacetNode (ListItem *node_p) |
Free a LuceneFacetNode. More... | |
GRASSROOTS_LUCENE_API json_t * | GetLuceneFacetAsJSON (const LuceneFacet *facet_p) |
Get the JSON representation of a LuceneFacet. More... | |
GRASSROOTS_LUCENE_API LuceneFacet * | GetLuceneFacetFromResultsJSON (const json_t *json_p) |
Get a LuceneFacet from a JSON representation. More... | |
Data Fields | |
char * | lf_name_s |
uint32 | lf_count |
GRASSROOTS_LUCENE_API LuceneFacet * AllocateLuceneFacet | ( | const char * | name_s, |
const uint32 | count | ||
) |
Allocate a LuceneFacet to store search result metadata.
NULL
upon error. GRASSROOTS_LUCENE_API void FreeLuceneFacet | ( | LuceneFacet * | facet_p | ) |
Free a LuceneFacet.
tool_p | The LuceneFacet to free. |
GRASSROOTS_LUCENE_API LuceneFacetNode * AllocateLuceneFacetNode | ( | LuceneFacet * | facet_p | ) |
Allocate a LuceneFacetNode.
NULL
upon error. GRASSROOTS_LUCENE_API LuceneFacetNode * AllocateLuceneFacetNodeByParts | ( | const char * | name_s, |
const uint32 | count | ||
) |
Allocate a LuceneFacetNode.
NULL
upon error. GRASSROOTS_LUCENE_API void FreeLuceneFacetNode | ( | ListItem * | node_p | ) |
Free a LuceneFacetNode.
node_p | The LuceneFacetNode to free. |
GRASSROOTS_LUCENE_API json_t * GetLuceneFacetAsJSON | ( | const LuceneFacet * | facet_p | ) |
Get the JSON representation of a LuceneFacet.
facet_p | The LuceneFacet to get the JSON representation of. |
NULL
upon error. GRASSROOTS_LUCENE_API LuceneFacet * GetLuceneFacetFromResultsJSON | ( | const json_t * | json_p | ) |
Get a LuceneFacet from a JSON representation.
json_t | The json_t representing the LuceneFacet. |
NULL
upon error. char* lf_name_s |
uint32 lf_count |