Package org.apache.pig.piggybank.evaluation.datetime.convert

Examples of org.apache.pig.piggybank.evaluation.datetime.convert.UnixToISO.exec()


        // Verify that (long) unix datetimes convert to ISO datetimes
        Tuple t1 = TupleFactory.getInstance().newTuple(1);
        t1.set(0, 1231290421000L);

        UnixToISO func = new UnixToISO();
        String iso = func.exec(t1);

        assertTrue(iso.equals("2009-01-07T01:07:01.000Z"));
    }

    @Test
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.