Show / Hide Table of Contents

Interface IChunk<T>

Interface representing a chunk of items in TaskScheduler

Namespace: Cognite.Extractor.Common
Assembly: Cognite.Common.dll
Syntax
public interface IChunk<T>
Type Parameters
Name Description
T

Properties

| Edit this page View Source

Exception

Exception if chunk operation failed

Declaration
Exception? Exception { get; set; }
Property Value
Type Description
Exception
| Edit this page View Source

Items

Items in chunk

Declaration
IEnumerable<T> Items { get; }
Property Value
Type Description
IEnumerable<T>

Methods

| Edit this page View Source

Completed(T)

Return true if the passed item (which is a member of this chunk) is completed

Declaration
bool Completed(T item)
Parameters
Type Name Description
T item

Item to verify

Returns
Type Description
bool

True if T is complete and can be removed

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