| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| NullExtentIterator |
|
| 1.0;1 |
| 1 | // BSD License (http://www.galagosearch.org/license) | |
| 2 | package org.galagosearch.core.retrieval.structured; | |
| 3 | ||
| 4 | import org.galagosearch.core.util.ExtentArray; | |
| 5 | ||
| 6 | /** | |
| 7 | * | |
| 8 | * @author trevor | |
| 9 | */ | |
| 10 | 20 | public class NullExtentIterator extends ExtentIterator { |
| 11 | 16 | ExtentArray array = new ExtentArray(); |
| 12 | ||
| 13 | public void nextDocument() { | |
| 14 | 0 | } |
| 15 | ||
| 16 | public boolean isDone() { | |
| 17 | 8 | return true; |
| 18 | } | |
| 19 | ||
| 20 | public ExtentArray extents() { | |
| 21 | 0 | assert false : "This method should never be called."; |
| 22 | 0 | return array; |
| 23 | } | |
| 24 | ||
| 25 | public int document() { | |
| 26 | 0 | assert false : "This method should never be called."; |
| 27 | 0 | return Integer.MAX_VALUE; |
| 28 | } | |
| 29 | ||
| 30 | public int count() { | |
| 31 | 0 | assert false : "This method should never be called."; |
| 32 | 0 | return 0; |
| 33 | } | |
| 34 | ||
| 35 | public void reset() { | |
| 36 | // do nothing | |
| 37 | 0 | } |
| 38 | } |