querqy.trie.model.LookupState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of querqy-core Show documentation
Show all versions of querqy-core Show documentation
Querqy library for query rewriting: Querqy Core
package querqy.trie.model;
import querqy.trie.State;
import java.util.Queue;
public class LookupState {
public final int lookupOffsetStart;
public final Queue terms;
private State state;
public LookupState(final int lookupOffsetStart, final Queue terms, final State state) {
this.lookupOffsetStart = lookupOffsetStart;
this.terms = terms;
this.state = state;
}
public State getState() {
return state;
}
public LookupState setState(final State state) {
this.state = state;
return this;
}
public LookupState addTerm(final CharSequence term) {
terms.add(term);
return this;
}
}