Class CloudQueryResult<TDocument>
- Namespace
- Excalibur.Data.CloudNative
- Assembly
- Excalibur.Data.Abstractions.dll
Represents the result of a cloud-native query operation.
public sealed class CloudQueryResult<TDocument> where TDocument : class
Type Parameters
TDocumentThe document type.
- Inheritance
-
CloudQueryResult<TDocument>
- Inherited Members
Constructors
CloudQueryResult(IReadOnlyList<TDocument>, double, string?, string?)
Initializes a new instance of the CloudQueryResult<TDocument> class.
public CloudQueryResult(IReadOnlyList<TDocument> documents, double requestCharge, string? continuationToken = null, string? sessionToken = null)
Parameters
documentsIReadOnlyList<TDocument>requestChargedoublecontinuationTokenstringsessionTokenstring
Properties
ContinuationToken
Gets the continuation token for pagination.
public string? ContinuationToken { get; }
Property Value
Documents
Gets the query result documents.
public IReadOnlyList<TDocument> Documents { get; }
Property Value
- IReadOnlyList<TDocument>
HasMoreResults
Gets a value indicating whether there are more results.
public bool HasMoreResults { get; }
Property Value
RequestCharge
Gets the total request charge for the query.
public double RequestCharge { get; }
Property Value
SessionToken
Gets the session token for session consistency.
public string? SessionToken { get; }