Package org.apache.lucene.util
Class ReaderUtil.Gather
- java.lang.Object
-
- org.apache.lucene.util.ReaderUtil.Gather
-
- Enclosing class:
- ReaderUtil
public abstract static class ReaderUtil.Gather extends Object
Recursively visits all sub-readers of a reader. You should subclass this and override the add method to gather what you need.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description Gather(IndexReader r)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
add(int base, IndexReader r)
int
run()
int
run(int docBase)
-
-
-
Constructor Detail
-
Gather
public Gather(IndexReader r)
-
-
Method Detail
-
run
public int run() throws IOException
- Throws:
IOException
-
run
public int run(int docBase) throws IOException
- Throws:
IOException
-
add
protected abstract void add(int base, IndexReader r) throws IOException
- Throws:
IOException
-
-