- Create Engine structure to manage memtables, SSTables and WAL - Implement MemTable to SSTable flush mechanism - Add background flush goroutine for periodic flushing - Build iterator system for reading from multiple data sources - Create range-bounded iterators for queries - Implement unified hierarchical iterator in iterator package - Update TODO.md to mark Phase D as complete
15 lines
470 B
Go
15 lines
470 B
Go
package iterator
|
|
|
|
// MergedIterator is an alias for HierarchicalIterator
|
|
// to maintain backward compatibility
|
|
type MergedIterator struct {
|
|
*HierarchicalIterator
|
|
}
|
|
|
|
// NewMergedIterator creates a new merged iterator from the given iterators
|
|
// The iterators should be provided in newest-to-oldest order for correct semantics
|
|
func NewMergedIterator(iters []Iterator) *MergedIterator {
|
|
return &MergedIterator{
|
|
HierarchicalIterator: NewHierarchicalIterator(iters),
|
|
}
|
|
} |