kevo/pkg/common/iterator/composite/composite.go
Jeremy Tregunna 62c40ba608
All checks were successful
Go Tests / Run Tests (1.24.2) (push) Successful in 9m36s
refactor: cleaning up iterators, SRP, common interface control, etc.
2025-04-20 11:28:49 -06:00

18 lines
483 B
Go

package composite
import (
"git.canoozie.net/jer/go-storage/pkg/common/iterator"
)
// CompositeIterator is an interface for iterators that combine multiple source iterators
// into a single logical view.
type CompositeIterator interface {
// Embeds the basic Iterator interface
iterator.Iterator
// NumSources returns the number of source iterators
NumSources() int
// GetSourceIterators returns the underlying source iterators
GetSourceIterators() []iterator.Iterator
}