pop next span from beginning of the buffer.
()
| 1178 | |
| 1179 | // pop next span from beginning of the buffer. |
| 1180 | func (i *bridgeIterator) pop() (*parquetquery.IteratorResult, bool) { |
| 1181 | if i.nextSpansIdx >= len(i.nextSpans) { |
| 1182 | return nil, false |
| 1183 | } |
| 1184 | |
| 1185 | ret := i.nextSpans[i.nextSpansIdx] |
| 1186 | i.nextSpansIdx++ |
| 1187 | return i.spanToIteratorResult(ret), true |
| 1188 | } |
| 1189 | |
| 1190 | func (i *bridgeIterator) Next() (*parquetquery.IteratorResult, error) { |
| 1191 | // drain current buffer |
no test coverage detected