Examples of dumpSchema()


Examples of org.apache.pig.PigServer.dumpSchema()

        Util.createInputFile(FileSystem.getLocal(new Configuration()), tmpDirName + "/table_testSimpleLoad", input);

        String query =
            "  a = load '" + tmpDirName + "/table_testSimpleLoad' as (m:map[int]);";
        Util.registerMultiLineQuery(pig, query);
        Schema sch = pig.dumpSchema("a");
        assertEquals("Checking expected schema",sch.toString(), "{m: map[int]}");
        Iterator<Tuple> it = pig.openIterator("a");

        Assert.assertTrue(it.hasNext());
        Tuple t = it.next();
View Full Code Here

Examples of org.dmd.dms.util.DmoCompactSchemaFormatter.dumpSchema()

      // DmoAttributeSchemaFormatter(System.out);
      // asf.dumpSchema("meta", "org.dmd.dms", attributeDefs, typeDefs,
      // curr.getCanonicalPath() + DMODIR);
      DmoCompactSchemaFormatter csf = new DmoCompactSchemaFormatter(
          System.out);
      csf.dumpSchema("meta", "org.dmd.dms", classDefs, attributeDefs,
          typeDefs, ruleInstances, curr.getCanonicalPath() + DMODIR,
          META_BASE_ID, META_ID_RANGE);

      // DmoValidatorCollectionFormatter vcf = new
      // DmoValidatorCollectionFormatter(System.out);
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.