Package org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.regex

Examples of org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.regex.NonConstantRegex.match()


            assertEquals(true, regex2.match("abc", "1234") );
           
            NonConstantRegex ncr = new NonConstantRegex();
            assertEquals(false, ncr.match("1234", "abc"));
            assertEquals(false, ncr.match("abc", "1234"));
            assertEquals(true, ncr.match("1234", "\\d\\d\\d\\d"));
            assertEquals(true, ncr.match("abc", "[a-z]{3}"));

           
        } catch( Exception e ){
            fail();
View Full Code Here


           
            NonConstantRegex ncr = new NonConstantRegex();
            assertEquals(false, ncr.match("1234", "abc"));
            assertEquals(false, ncr.match("abc", "1234"));
            assertEquals(true, ncr.match("1234", "\\d\\d\\d\\d"));
            assertEquals(true, ncr.match("abc", "[a-z]{3}"));

           
        } catch( Exception e ){
            fail();
        }
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.