table/iterator.go
func NewConcatIterator(tbls []*Table, reversed bool) *ConcatIterator {
	iters := make([]*Iterator, len(tbls))
	for i := 0; i < len(tbls); i++ {
		iters[i] = tbls[i].NewIterator(reversed)
	}
	return &ConcatIterator{
		reversed: reversed,
		iters:    iters,
		tables:   tbls,
		idx:      -1, // Not really necessary because s.it.Valid()=false, but good to have.
	}
}
func NewConcatIterator(tbls []*Table, reversed bool) *ConcatIterator {
	iters := make([]*Iterator, len(tbls))
	for i := 0; i < len(tbls); i++ {
		iters[i] = tbls[i].NewIterator(reversed)
	}
	return &ConcatIterator{
		reversed: reversed,
		iters:    iters,
		tables:   tbls,
		idx:      -1, // Not really necessary because s.it.Valid()=false, but good to have.
	}
}
func NewConcatIterator ( tbls [ ] * Table , reversed bool ) * ConcatIterator { iters := make ( [ ] * Iterator , len ( tbls ) ) for i := 0 ; i < len ( tbls ) ; i ++ { iters [ i ] = tbls [ i ] . NewIterator ( reversed ) } return & ConcatIterator { reversed : reversed , iters : iters , tables : tbls , idx : - 1 , // Not really necessary because s.it.Valid()=false, but good to have. } }
// NewConcatIterator creates a new concatenated iterator
NewConcatIterator creates a new concatenated iterator