public class RegexTermEnum extends FilteredTermEnum
Subclass of FilteredTermEnum for enumerating all terms that match the
specified regular expression term using the specified regular expression
implementation.
Term enumerations are always ordered by Term.compareTo(). Each term in
the enumeration is greater than all that precede it.
super();
field = term.field();
String text = term.text();
this.regexImpl = regexImpl;
regexImpl.compile(text);
pre = regexImpl.prefix();
if (pre == null) pre = "";
setEnum(reader.terms(new Term(term.field(), pre)));