class ParallelReader.ParallelTermEnum {
public ParallelTermEnum(Term term) throws IOException {
field = term.field();
IndexReader reader = ((IndexReader)fieldToReader.get(field));
if (reader!=null)
termEnum = reader.terms(term);
}
}
class ParallelReader.ParallelTermDocs {
public ParallelTermDocs(Term term) throws IOException {
if (term == null)
termDocs = readers.isEmpty() ? null : ((IndexReader)readers.get(0)).termDocs(null);
else
seek(term);
}
}
class ParallelReader.ParallelTermPositions {
public ParallelTermPositions(Term term) throws IOException { seek(term); }
}
|