MCPcopy Create free account
hub / github.com/apache/pig / storeAndCopyLocally

Method storeAndCopyLocally

test/org/apache/pig/test/TestStore.java:112–125  ·  view source on GitHub ↗
(DataBag inpDB)

Source from the content-addressed store, hash-verified

110 }
111
112 private void storeAndCopyLocally(DataBag inpDB) throws Exception {
113 setUpInputFileOnCluster(inpDB);
114 String script = "a = load '" + inputFileName + "'; " +
115 "store a into '" + outputFileName + "' using PigStorage('\t');" +
116 "fs -ls " + TESTDIR;
117 ps.setBatchOn();
118 Util.registerMultiLineQuery(ps, script);
119 ps.executeBatch();
120 Path path = getFirstOutputFile(cluster.getConfiguration(),
121 new Path(outputFileName), cluster.getExecType(), true);
122 Util.copyFromClusterToLocal(
123 cluster,
124 path.toString(), outputFileName);
125 }
126
127 @AfterClass
128 public static void oneTimeTearDown() throws Exception {

Callers 3

testStoreMethod · 0.95
testStoreComplexDataMethod · 0.95

Calls 9

getFirstOutputFileMethod · 0.80
getConfigurationMethod · 0.65
setBatchOnMethod · 0.45
executeBatchMethod · 0.45
getExecTypeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected