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 page have 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 and FetchMoreResultsAsync.
The RowSet dequeues Row items while iterated. After a full enumeration of this instance, following enumerations will be empty, as all rows have been dequeued.
Namespace: Dse
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 |
Forces the fetching the next page of results for this RowSet.
| |
FetchMoreResultsAsync |
Asynchronously retrieves the next page of results for this RowSet.
The Task will be completed once the internal queue is filled with the new Row instances. | |
GetAvailableWithoutFetching |
The number of rows available in this row set that can be retrieved without blocking to fetch.
| |
GetEnumerator | Returns an enumerator that iterates through the collection. | |
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.
Obsolete: Note that it will be removed in future versions | |
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.
|