func (m *MongoIterator) Clone() graph.Iterator { var newM graph.Iterator if m.isAll { newM = NewMongoAllIterator(m.ts, m.collection) } else { newM = NewMongoIterator(m.ts, m.collection, m.dir, m.hash) } newM.CopyTagsFrom(m) return newM }