pop next span from beginning of the buffer.
()
| 1239 | |
| 1240 | // pop next span from beginning of the buffer. |
| 1241 | func (i *bridgeIterator) pop() (*parquetquery.IteratorResult, bool) { |
| 1242 | if i.nextSpansIdx >= len(i.nextSpans) { |
| 1243 | return nil, false |
| 1244 | } |
| 1245 | |
| 1246 | ret := i.nextSpans[i.nextSpansIdx] |
| 1247 | i.nextSpansIdx++ |
| 1248 | return i.spanToIteratorResult(ret), true |
| 1249 | } |
| 1250 | |
| 1251 | func (i *bridgeIterator) Next() (*parquetquery.IteratorResult, error) { |
| 1252 | // drain current buffer |
no test coverage detected