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. | |
Functions | |
FastBitResultSetHandle | fastbit_build_result_set (FastBitQueryHandle query) |
Build a new result set from a query object. | |
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. | |
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. |
This set of functions provide row-wise accesses to query results.
The opaque object used to hold 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.
References ibis::gVerbose.
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.
References ibis::gVerbose.
double fastbit_result_set_getDouble | ( | FastBitResultSetHandle | rset, |
unsigned | position | ||
) |
Get the value of the named column as a double-precision floating-point number.
References ibis::gVerbose.
float fastbit_result_set_getFloat | ( | FastBitResultSetHandle | rset, |
unsigned | position | ||
) |
Get the value of the named column as a single-precision floating-point number.
References ibis::gVerbose.
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.
References ibis::gVerbose.
![]() |