348349350351352353354355
ensureOpen(); if (subReaders.length == 1) { // Optimize single segment case: return subReaders[0].terms(); } else { return new MultiTermEnum(this, subReaders, starts, null); } }
359360361362363364365366
ensureOpen(); if (subReaders.length == 1) { // Optimize single segment case: return subReaders[0].terms(term); } else { return new MultiTermEnum(this, subReaders, starts, term); } }
344345346347348349350351
355356357358359360361362
337338339340341342343
} @Override public TermEnum terms() throws IOException { ensureOpen(); return new MultiTermEnum(this, subReaders, starts, null); }
343344345346347348349
} @Override public TermEnum terms(Term term) throws IOException { ensureOpen(); return new MultiTermEnum(this, subReaders, starts, term); }