TaskChunk class

Mixed-in types
  • ExecutableTask
Available extensions
Annotations
  • @artifact

Constructors

TaskChunk({required String taskId, required ChunkSource source, required RecordLocation recordLocation, int maxChunkSize = 500, int maxPostOverlap = 100, int embedBatchSize = 25, int chunkBatchSize = 100, int? distillationFactor, int? lastChunk, bool chunkingFinished = false, required String destinationCollection, required String bucket, Map<String, dynamic> destinationMetadata = const {}})

Properties

bucket String
final
chunkBatchSize int
final
chunkCount int
no setter
chunkingFinished bool
getter/setter pair
destinationCollection String
final
destinationMetadata Map<String, dynamic>
final
distillationFactor int?
final
embedBatchSize int
final
hashCode int
The hash code for this object.
no setterinherited
lastChunk int?
getter/setter pair
maxChunkSize int
final
maxPostOverlap int
final
recordLocation RecordLocation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldScheduleDistillation bool
no setter
source ChunkSource
final
taskId String
final
to → _a

Available on _j, provided by the $TaskChunk extension

no setter

Methods

addChunk(Chunk chunk) Future<String>
copyWith({_7? taskId, _e? source, _i? recordLocation, _9? maxChunkSize, _n resetMaxChunkSize = _F, _9? deltaMaxChunkSize, _9? maxPostOverlap, _n resetMaxPostOverlap = _F, _9? deltaMaxPostOverlap, _9? embedBatchSize, _n resetEmbedBatchSize = _F, _9? deltaEmbedBatchSize, _9? chunkBatchSize, _n resetChunkBatchSize = _F, _9? deltaChunkBatchSize, _9? distillationFactor, _n deleteDistillationFactor = _F, _9? deltaDistillationFactor, _9? lastChunk, _n deleteLastChunk = _F, _9? deltaLastChunk, _n? chunkingFinished, _n resetChunkingFinished = _F, _7? destinationCollection, _7? bucket, _x? destinationMetadata, _n resetDestinationMetadata = _F}) → _j

Available on _j, provided by the $TaskChunk extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → _5

Available on _j, provided by the $TaskChunk extension

toString() String
A string representation of this object.
inherited
workOnTask(TaskExecutionContext context) Future<void>
override

Operators

operator ==(Object other) bool
The equality operator.
inherited