Package org.apache.pig.builtin

Examples of org.apache.pig.builtin.BagToTuple.outputSchema()


    Schema inputSch = new Schema();
    inputSch.add(bagSch);

    BagToTuple udf = new BagToTuple();
    Schema outputSchema = udf.outputSchema(inputSch);

    assertEquals("schema of BagToTuple input", expectedSch.size(),
        outputSchema.size());
    assertTrue("schema of BagToTuple input",
        Schema.equals(expectedSch, outputSchema, false, true));
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.