Example usage for org.apache.lucene.util.automaton Operations run

List of usage examples for org.apache.lucene.util.automaton Operations run

Introduction

In this page you can find the example usage for org.apache.lucene.util.automaton Operations run.

Prototype

public static boolean run(Automaton a, IntsRef s) 

Source Link

Document

Returns true if the given string (expressed as unicode codepoints) is accepted by the automaton.

Usage

From source file:com.tuplejump.stargate.lucene.query.fsm.NamedCondition.java

License:Apache License

@Override
public boolean matches(Tuple tuple) {
    String value = tuple.getValue(getAutomatonField()).toString();
    return Operations.run(automaton, value);
}