This set of functions provide row-wise accesses to query results. More...
Typedefs | |
typedef struct FastBitResultSet * | FastBitResultSetHandle |
A handle to identify a set of query results. More... | |
Functions | |
FastBitResultSetHandle | fastbit_build_result_set (FastBitQueryHandle query) |
Build a new result set from a query object. More... | |
int | fastbit_destroy_result_set (FastBitResultSetHandle rset) |
Destroy a result set. More... | |
double | fastbit_result_set_get_double (FastBitResultSetHandle rset, const char *cname) |
Get the value of the named column as a double-precision floating-point number. More... | |
float | fastbit_result_set_get_float (FastBitResultSetHandle rset, const char *cname) |
Get the value of the named column as a single-precision floating-point number. More... | |
int | fastbit_result_set_get_int (FastBitResultSetHandle rset, const char *cname) |
Get the value of the named column as an integer. More... | |
int64_t | fastbit_result_set_get_long (FastBitResultSetHandle rset, const char *cname) |
Get the value of the named column as a long. More... | |
const char * | fastbit_result_set_get_string (FastBitResultSetHandle rset, const char *cname) |
Get the value of the named column as a string. More... | |
unsigned | fastbit_result_set_get_unsigned (FastBitResultSetHandle rset, const char *cname) |
Get the value of the named column as an unsigned integer. More... | |
double | fastbit_result_set_getDouble (FastBitResultSetHandle rset, unsigned position) |
Get the value of the named column as a double-precision floating-point number. More... | |
float | fastbit_result_set_getFloat (FastBitResultSetHandle rset, unsigned position) |
Get the value of the named column as a single-precision floating-point number. More... | |
int32_t | fastbit_result_set_getInt (FastBitResultSetHandle rset, unsigned position) |
Get the value of the named column as an integer. More... | |
int64_t | fastbit_result_set_getLong (FastBitResultSetHandle rset, unsigned position) |
Get the value of the named column as a long. More... | |
const char * | fastbit_result_set_getString (FastBitResultSetHandle rset, unsigned position) |
Get the value of the named column as a string. More... | |
uint32_t | fastbit_result_set_getUnsigned (FastBitResultSetHandle rset, unsigned position) |
Get the value of the named column as an unsigned integer. More... | |
int | fastbit_result_set_next (FastBitResultSetHandle) |
Returns 0 if there are more results, otherwise returns -1. More... | |
int | fastbit_result_set_next_bundle (FastBitResultSetHandle) |
Returns 0 if there are more bundles, otherwise returns -1. More... | |
This set of functions provide row-wise accesses to query results.
The opaque object used to hold a result set.
typedef struct FastBitResultSet* FastBitResultSetHandle |
A handle to identify a set of query results.
FastBitResultSetHandle fastbit_build_result_set | ( | FastBitQueryHandle | qhandle | ) |
Build a new result set from a query object.
Build a new result set from a query object.
References ibis::query::FULL_EVALUATE.
int fastbit_destroy_result_set | ( | FastBitResultSetHandle | rset | ) |
Destroy a result set.
double fastbit_result_set_get_double | ( | FastBitResultSetHandle | rset, |
const char * | cname | ||
) |
Get the value of the named column as a double-precision floating-point number.
float fastbit_result_set_get_float | ( | FastBitResultSetHandle | rset, |
const char * | cname | ||
) |
Get the value of the named column as a single-precision floating-point number.
int fastbit_result_set_get_int | ( | FastBitResultSetHandle | rset, |
const char * | cname | ||
) |
Get the value of the named column as an integer.
int64_t fastbit_result_set_get_long | ( | FastBitResultSetHandle | rset, |
const char * | cname | ||
) |
Get the value of the named column as a long.
const char* fastbit_result_set_get_string | ( | FastBitResultSetHandle | rset, |
const char * | cname | ||
) |
Get the value of the named column as a string.
unsigned fastbit_result_set_get_unsigned | ( | FastBitResultSetHandle | rset, |
const char * | cname | ||
) |
Get the value of the named column as an unsigned integer.
double fastbit_result_set_getDouble | ( | FastBitResultSetHandle | rset, |
unsigned | position | ||
) |
Get the value of the named column as a double-precision floating-point number.
float fastbit_result_set_getFloat | ( | FastBitResultSetHandle | rset, |
unsigned | position | ||
) |
Get the value of the named column as a single-precision floating-point number.
int32_t fastbit_result_set_getInt | ( | FastBitResultSetHandle | rset, |
unsigned | position | ||
) |
Get the value of the named column as an integer.
The argument index
is the position (starting with 0) of the attribute in the select clause. This should be faster than the one with cname
as argument since it avoids name look up.
int64_t fastbit_result_set_getLong | ( | FastBitResultSetHandle | rset, |
unsigned | position | ||
) |
Get the value of the named column as a long.
const char* fastbit_result_set_getString | ( | FastBitResultSetHandle | rset, |
unsigned | position | ||
) |
Get the value of the named column as a string.
uint32_t fastbit_result_set_getUnsigned | ( | FastBitResultSetHandle | rset, |
unsigned | position | ||
) |
Get the value of the named column as an unsigned integer.
int fastbit_result_set_next | ( | FastBitResultSetHandle | ) |
Returns 0 if there are more results, otherwise returns -1.
int fastbit_result_set_next_bundle | ( | FastBitResultSetHandle | ) |
Returns 0 if there are more bundles, otherwise returns -1.