Namespace DataStax.AstraDB.DataApi.Core.Enumeration
Classes
- AbstractCursor<T>
Abstract base class for cursors that iterate over query results in a streaming manner.
This cursor provides state management, buffering, and both synchronous and asynchronous enumeration capabilities. Results are fetched in batches from the underlying API and buffered for efficient iteration.
- CollectionFindAndRerankCursor<T>
A cursor for running a find-and-rerank query on a collection with projection support. This is a convenience class that uses the same type for both the row and result.
- CollectionFindAndRerankCursor<T, TResult>
A cursor for running a find-and-rerank query on a collection with projection support. This class allows you to specify a different result type than the row type, useful for projections.
- CollectionFindCursor<T>
A cursor for finding and enumerating documents in a collection. This is a convenience class that uses the same type for both the document and result.
- CollectionFindCursor<T, TResult>
A cursor for finding and enumerating documents in a collection with projection support. This class allows you to specify a different result type than the document type, useful for projections.
- CursorException
Exception thrown when a cursor operation is attempted in an invalid state.
- FindAndRerankCursor<T, TResult, TSort, TCursor>
A fluent API cursor for running a find-and-rerank query and enumerating records or rows with filtering, sorting, and projection capabilities.
This cursor extends PaginatedCursor<T, TResult, TOptions, TCursor> to provide query-specific operations like sorting or setting rerank details.
It supports both synchronous and asynchronous iteration patterns.
Use the fluent methods to refine your query, then iterate using foreach, LINQ, or manual cursor navigation.
- FindCursor<T, TResult, TSort, TCursor>
A fluent API cursor for finding and enumerating records or rows with filtering, sorting, and projection capabilities.
This cursor extends PaginatedCursor<T, TResult, TOptions, TCursor> to provide query-specific operations like skipping or sorting.
It supports both synchronous and asynchronous iteration patterns.
Use the fluent methods to refine your query, then iterate using foreach, LINQ, or manual cursor navigation.
- FindPage<T>
Represents a page of results from a find operation.
- PaginatedCursor<T, TResult, TOptions, TCursor>
A fluent API cursor for a generic, formally paginated, find-like operation, be it a regular find or a find-and-rerank query. Cursors allow to run multiple-results queries, enumerating the results, and applying filters, projections, and other modifiers to the search.
This cursor extends AbstractCursor<T> to provide pagination management and the handling of those options that are common to all find-like operations, such as projecting or filtering.
Both synchronous and asynchronous iteration patterns are supported.
Use the fluent methods to refine your query, then iterate using foreach, LINQ, or manual cursor navigation.
- RerankedResult<T>
A single item returned by a FindAndRerank query operation, comprising a document and a dictionary of scores as requested.
- TableFindCursor<T>
A cursor for finding and enumerating rows in a table. This is a convenience class that uses the same type for both the row and result.
- TableFindCursor<T, TResult>
A cursor for finding and enumerating rows in a table with projection support. This class allows you to specify a different result type than the row type, useful for projections.
Enums
- CursorState
Represents the current state of a cursor.