View Javadoc

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  public class NullExtentIterator extends ExtentIterator {
11      ExtentArray array = new ExtentArray();
12  
13      public void nextDocument() {
14      }
15  
16      public boolean isDone() {
17          return true;
18      }
19  
20      public ExtentArray extents() {
21          assert false : "This method should never be called.";
22          return array;
23      }
24  
25      public int document() {
26          assert false : "This method should never be called.";
27          return Integer.MAX_VALUE;
28      }
29  
30      public int count() {
31          assert false : "This method should never be called.";
32          return 0;
33      }
34  
35      public void reset() {
36          // do nothing
37      }
38  }