()
| 699 | } |
| 700 | |
| 701 | func (ii *manyIntIterator) init() { |
| 702 | if ii.highlowcontainer.size() > ii.pos { |
| 703 | ii.hs = uint32(ii.highlowcontainer.getKeyAtIndex(ii.pos)) << 16 |
| 704 | c := ii.highlowcontainer.getContainerAtIndex(ii.pos) |
| 705 | switch t := c.(type) { |
| 706 | case *arrayContainer: |
| 707 | ii.shortIter = shortIterator{t.content, 0} |
| 708 | ii.iter = &ii.shortIter |
| 709 | case *runContainer16: |
| 710 | ii.runIter = runIterator16{rc: t, curIndex: 0, curPosInIndex: 0} |
| 711 | ii.iter = &ii.runIter |
| 712 | case *bitmapContainer: |
| 713 | ii.bitmapIter = bitmapContainerManyIterator{t, -1, 0} |
| 714 | ii.iter = &ii.bitmapIter |
| 715 | } |
| 716 | } else { |
| 717 | ii.iter = nil |
| 718 | } |
| 719 | } |
| 720 | |
| 721 | func (ii *manyIntIterator) NextMany(buf []uint32) int { |
| 722 | n := 0 |
no test coverage detected