Show / Hide Table of Contents

Class QueryCursor

Composite cursor used when iterating

Inheritance
object
QueryCursor
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cognite.Extensions.DataModels
Assembly: Cognite.Extensions.dll
Syntax
public class QueryCursor

Constructors

| Edit this page View Source

QueryCursor(Query, IEnumerable<string>?)

Create an empty query cursor from a query.

Declaration
public QueryCursor(Query query, IEnumerable<string>? queriesToNeverPaginate)
Parameters
Type Name Description
Query query

DMS query to convert to a set of cursors.

IEnumerable<string> queriesToNeverPaginate

Set of queries that shouldn't be paginated, for example if you know for sure that they will never return more results than will be returned in a single request. This is a workaround for DMS returning cursors even if there are no more results.

Properties

| Edit this page View Source

Finished

True if this cursor has finished reading.

Declaration
public bool Finished { get; }
Property Value
Type Description
bool

Extension Methods

DataModelUtils.GetOrCreateResourcesAsync<T, T2>(T2, IEnumerable<InstanceIdentifier>, Func<IEnumerable<InstanceIdentifier>, IEnumerable<SourcedNodeWrite<T>>>, Func<IEnumerable<SourcedNodeWrite<T>>, SanitationMode, (IEnumerable<SourcedNodeWrite<T>>, IEnumerable<CogniteError<SourcedNodeWrite<T>>>)>, int, int, RetryMode, SanitationMode, CancellationToken)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX