Click or drag to resize
RowSet Class
Represents a result of a query returned by Cassandra.

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.

Inheritance Hierarchy
SystemObject
  CassandraRowSet

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.4.0
Syntax
C#
public class RowSet : IEnumerable<Row>, 
	IEnumerable, IDisposable

The RowSet type exposes the following members.

Constructors
  NameDescription
Public methodRowSet
Creates a new instance of RowSet.
Top
Methods
  NameDescription
Public methodDispose Obsolete.
For backward compatibility only
Public methodFetchMoreResults
Force the fetching the next page of results for this result set, if any.
Public methodFetchMoreResultsAsync
Force the fetching the next page of results without blocking for this result set, if any.
Public methodGetAvailableWithoutFetching
The number of rows available in this row set that can be retrieved without blocking to fetch.
Public methodGetEnumerator
Public methodGetRows
For backward compatibility: It is possible to iterate using the RowSet as it is enumerable.
Public methodIsExhausted
Returns whether this ResultSet has more results. It has side-effects, if the internal queue has been consumed it will page for more results.
Top
Properties
  NameDescription
Public propertyColumns
Gets or sets the columns in the RowSet
Public propertyInfo
Gets the execution info of the query
Public propertyIsFullyFetched
Whether all results from this result set has been fetched from the database.
Public propertyPagingState
Gets or sets the paging state of the query for the RowSet. When set it states that there are more pages.
Top
Remarks
RowSet paging is not available with the version 1 of the native protocol. If the protocol version 1 is in use, a RowSet is always fetched in it's entirely and it's up to the client to make sure that no query can yield ResultSet that won't hold in memory.
See Also