RowSet Class |
The retrieval of the rows of a RowSet is generally paged (a first page of result is fetched and the next one is only fetched once all the results of the first one has been consumed). The size of the pages can be configured either globally through SetPageSize(Int32) or per-statement with SetPageSize(Int32). Though new pages are automatically (and transparently) fetched when needed, it is possible to force the retrieval of the next page early through FetchMoreResults.
The RowSet dequeues Row items while iterated. Parallel enumerations is supported and thread-safe. After a full enumeration of this instance, following enumerations will be empty, as all rows have been dequeued.
Namespace: Cassandra
public class RowSet : IEnumerable<Row>, IEnumerable, IDisposable
The RowSet type exposes the following members.
Name | Description | |
---|---|---|
Dispose | Obsolete.
For backward compatibility only
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FetchMoreResults |
Force the fetching the next page of results for this result set, if any.
| |
FetchMoreResultsAsync |
Force the fetching the next page of results without blocking for this result set, if any.
| |
GetAvailableWithoutFetching |
The number of rows available in this row set that can be retrieved without blocking to fetch.
| |
GetEnumerator | ||
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetRows |
For backward compatibility: It is possible to iterate using the RowSet as it is enumerable.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsExhausted |
Returns whether this ResultSet has more results.
It has side-effects, if the internal queue has been consumed it will page for more results.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Columns |
Gets or sets the columns in the RowSet
| |
Info |
Gets the execution info of the query
| |
IsFullyFetched |
Whether all results from this result set has been fetched from the database.
| |
PagingState |
Gets or sets the paging state of the query for the RowSet.
When set it states that there are more pages.
|