Move SubIterator handling out of Base

This commit is contained in:
kortschak 2014-07-30 12:11:14 +09:30
parent 189910c4b8
commit 525230206a
9 changed files with 46 additions and 1 deletions

View file

@ -149,6 +149,11 @@ func (it *Fixed) Next() (graph.Value, bool) {
return graph.NextLogOut(it, out, true)
}
// No sub-iterators.
func (it *Fixed) SubIterators() []graph.Iterator {
return nil
}
// Optimize() for a Fixed iterator is simple. Returns a Null iterator if it's empty
// (so that other iterators upstream can treat this as null) or there is no
// optimization.