Package org.apache.lucene.util.automaton

Examples of org.apache.lucene.util.automaton.ByteRunAutomaton.run()


        if (pattern == null) {
            return null;
        }
        RegExp regexp = new RegExp(pattern.utf8ToString());
        ByteRunAutomaton regexpRunAutomaton = new ByteRunAutomaton(regexp.toAutomaton());
        return regexpRunAutomaton.run(source.bytes, source.offset, source.length);
    }

    @Override
    public FunctionInfo info() {
        return INFO;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.