Share the source index with validators
This commit is contained in:
@@ -57,6 +57,9 @@ type Normalizer[T any] interface {
|
||||
}
|
||||
|
||||
type TypedValidationRequest[T any] struct {
|
||||
// SourceIndex optionally borrows the unchanged Source snapshot's read-only
|
||||
// index. Standalone callers may omit it; it is not a chunk-local index.
|
||||
SourceIndex *source.DocumentIndex
|
||||
Execution ExecutionOptions
|
||||
Stage string
|
||||
LaneID string
|
||||
@@ -83,6 +86,8 @@ type TypedValidator[T any] interface {
|
||||
}
|
||||
|
||||
type ChunkValidationRequest struct {
|
||||
// SourceIndex optionally borrows the complete Source snapshot's read-only index.
|
||||
SourceIndex *source.DocumentIndex
|
||||
Execution ExecutionOptions
|
||||
ModuleKey string
|
||||
Source *source.SourceDocument
|
||||
@@ -103,6 +108,8 @@ type ChunkValidator interface {
|
||||
}
|
||||
|
||||
type SerializedValidationRequest struct {
|
||||
// SourceIndex optionally borrows the complete Source snapshot's read-only index.
|
||||
SourceIndex *source.DocumentIndex
|
||||
Execution ExecutionOptions
|
||||
Stage string
|
||||
LaneID string
|
||||
|
||||
Reference in New Issue
Block a user