Package org.apache.lucene.util.automaton

Examples of org.apache.lucene.util.automaton.ByteRunAutomaton


        BytesRef pattern = args[1].value();
        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);
    }
View Full Code Here

TOP

Related Classes of org.apache.lucene.util.automaton.ByteRunAutomaton

Copyright © 2018 www.massapicom. 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.