/** * Construct an enumerator based upon an automaton, enumerating the specified * field, working on a supplied TermsEnum * * @lucene.experimental * @param compiled CompiledAutomaton */ public AutomatonTermsEnum(TermsEnum tenum, CompiledAutomaton compiled) { super(tenum); if (compiled.type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL) { throw new IllegalArgumentException("please use CompiledAutomaton.getTermsEnum instead"); } this.finite = compiled.finite; this.runAutomaton = compiled.runAutomaton; assert this.runAutomaton != null; this.commonSuffixRef = compiled.commonSuffixRef; this.automaton = compiled.automaton; // used for path tracking, where each bit is a numbered state. visited = new long[runAutomaton.getSize()]; }
/** * Construct an enumerator based upon an automaton, enumerating the specified * field, working on a supplied TermsEnum * * @lucene.experimental * @param compiled CompiledAutomaton */ public AutomatonTermsEnum(TermsEnum tenum, CompiledAutomaton compiled) { super(tenum); this.finite = compiled.finite; this.runAutomaton = compiled.runAutomaton; assert this.runAutomaton != null; this.commonSuffixRef = compiled.commonSuffixRef; this.automaton = compiled.automaton; // used for path tracking, where each bit is a numbered state. visited = new long[runAutomaton.getSize()]; }
/** * Construct an enumerator based upon an automaton, enumerating the specified * field, working on a supplied TermsEnum * * @lucene.experimental * @param compiled CompiledAutomaton */ public AutomatonTermsEnum(TermsEnum tenum, CompiledAutomaton compiled) { super(tenum); this.finite = compiled.finite; this.runAutomaton = compiled.runAutomaton; assert this.runAutomaton != null; this.commonSuffixRef = compiled.commonSuffixRef; this.automaton = compiled.automaton; // used for path tracking, where each bit is a numbered state. visited = new long[runAutomaton.getSize()]; }
/** * Construct an enumerator based upon an automaton, enumerating the specified * field, working on a supplied TermsEnum * * @lucene.experimental * @param compiled CompiledAutomaton */ public AutomatonTermsEnum(TermsEnum tenum, CompiledAutomaton compiled) { super(tenum); if (compiled.type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL) { throw new IllegalArgumentException("please use CompiledAutomaton.getTermsEnum instead"); } this.finite = compiled.finite; this.runAutomaton = compiled.runAutomaton; assert this.runAutomaton != null; this.commonSuffixRef = compiled.commonSuffixRef; this.automaton = compiled.automaton; // used for path tracking, where each bit is a numbered state. visited = new long[runAutomaton.getSize()]; }