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

Examples of org.apache.pig.piggybank.evaluation.string.HashFNV2.exec()


       
        Tuple t4 = TupleFactory.getInstance().newTuple(1);
        t4.set(0, "024ulhl0dq1tl&b=2");
       
        HashFNV2 func2 = new HashFNV2();
        Long r = func2.exec(t1);
        assertTrue(r==6228);
        r = func2.exec(t2);
        assertTrue(r==31);
        r = func2.exec(t3);
        assertTrue(r==null);
View Full Code Here


        t4.set(0, "024ulhl0dq1tl&b=2");
       
        HashFNV2 func2 = new HashFNV2();
        Long r = func2.exec(t1);
        assertTrue(r==6228);
        r = func2.exec(t2);
        assertTrue(r==31);
        r = func2.exec(t3);
        assertTrue(r==null);
       
        HashFNV1 func1 = new HashFNV1();
View Full Code Here

        HashFNV2 func2 = new HashFNV2();
        Long r = func2.exec(t1);
        assertTrue(r==6228);
        r = func2.exec(t2);
        assertTrue(r==31);
        r = func2.exec(t3);
        assertTrue(r==null);
       
        HashFNV1 func1 = new HashFNV1();
        r = func1.exec(t4);
        assertTrue(r==1669505231);
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.