(a container)
| 762 | } |
| 763 | |
| 764 | func (bc *bitmapContainer) and(a container) container { |
| 765 | switch x := a.(type) { |
| 766 | case *arrayContainer: |
| 767 | return bc.andArray(x) |
| 768 | case *bitmapContainer: |
| 769 | return bc.andBitmap(x) |
| 770 | case *runContainer16: |
| 771 | if x.isFull() { |
| 772 | return bc.clone() |
| 773 | } |
| 774 | return x.andBitmapContainer(bc) |
| 775 | } |
| 776 | panic("unsupported container type") |
| 777 | } |
| 778 | |
| 779 | func (bc *bitmapContainer) andCardinality(a container) int { |
| 780 | switch x := a.(type) { |
nothing calls this directly
no test coverage detected