Class IntersectTermsEnum

All Implemented Interfaces:
BytesRefIterator

final class IntersectTermsEnum extends BaseTermsEnum
This is used to implement efficient Terms.intersect(org.apache.lucene.util.automaton.CompiledAutomaton, org.apache.lucene.util.BytesRef) for block-tree. Note that it cannot seek, except for the initial term on init. It just "nexts" through the intersection of the automaton and the terms. It does not use the terms index at all: on init, it loads the root block, and scans its way to the initial term. Likewise, in next it scans until it finds a term that matches the current automaton transition.