Was this page helpful?
The result of a query.
A result object is read-only and is thread-safe to read or iterate over concurrently.
Public Functions
Frees a result instance.
This method invalidates all values, rows, and iterators that were derived from this result.
result – [in]
Gets the number of rows for the specified result.
result – [in]
The number of rows in the result.
Gets the number of columns per row for the specified result.
result – [in]
The number of columns per row in the result.
Gets the column name at index for the specified result.
result – [in]
index – [in]
name – [out] The column name at the specified index.
name_length – [out]
CASS_OK if successful, otherwise error occurred
Gets the column type at index for the specified result.
result – [in]
index – [in]
The column type at the specified index. CASS_VALUE_TYPE_UNKNOWN is returned if the index is out of bounds.
Gets the column data type at index for the specified result.
result – [in]
index – [in]
The column type at the specified index. NULL is returned if the index is out of bounds.
Gets the first row of the result.
result – [in]
The first row of the result. NULL if there are no rows.
Returns true if there are more pages.
Requires Apache Cassandra: 2.0+
result – [in]
cass_true if there are more pages
Gets the raw paging state from the result. The paging state is bound to the lifetime of the result object. If paging state needs to live beyond the lifetime of the result object it must be copied.
Warning: The paging state should not be exposed to or come from untrusted environments. The paging state could be spoofed and potentially used to gain access to other data.
Requires Apache Cassandra: 2.0+
result – [in]
paging_state – [out]
paging_state_size – [out]
CASS_OK if successful, otherwise error occurred
Creates a new iterator for the specified result. This can be used to iterate over rows in the result.
See also
result – [in]
A new iterator that must be freed.
Was this page helpful?
On this page
CassResult
CassResult::cass_result_free()
CassResult::cass_result_row_count()
CassResult::cass_result_column_count()
CassResult::cass_result_column_name()
CassResult::cass_result_column_type()
CassResult::cass_result_column_data_type()
CassResult::cass_result_first_row()
CassResult::cass_result_has_more_pages()
CassResult::cass_result_paging_state_token()
CassResult::cass_iterator_from_result()