Package org.apache.pig.piggybank.evaluation.string

Examples of org.apache.pig.piggybank.evaluation.string.RegexExtractAll


       
        Tuple t3 = tupleFactory.newTuple(2);
        t3.set(0, null);
        t3.set(1, matchRegex);
    
        RegexExtractAll func = new RegexExtractAll();
        Tuple r = func.exec(t1);
        assertEquals(r.size(), 2);
        assertEquals("this", r.get(0));
        assertEquals("match", r.get(1));
       
        r = func.exec(t2);
        assertTrue(r==null);
       
        r = func.exec(t3);
        assertTrue(r==null);
    }
View Full Code Here

TOP

Related Classes of org.apache.pig.piggybank.evaluation.string.RegexExtractAll

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.