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

Method setInternal

src/org/apache/pig/builtin/mock/Storage.java:320–334  ·  view source on GitHub ↗

to set the data in a location @param location "where" to store the tuples @param data the tuples to store

(String location, String partID, Collection<Tuple> data)

Source from the content-addressed store, hash-verified

318 * @param data the tuples to store
319 */
320 private void setInternal(String location, String partID, Collection<Tuple> data) {
321 Parts parts = locationToData.get(location);
322 if (partID == null) {
323 if (parts == null) {
324 partID = "mock";
325 } else {
326 throw new RuntimeException("Can not set location " + location + " twice");
327 }
328 }
329 if (parts == null) {
330 parts = new Parts(location);
331 locationToData.put(location, parts);
332 }
333 parts.set(partID, data);
334 }
335
336 /**
337 * to set the data in a location

Callers 2

setMethod · 0.95
prepareToWriteMethod · 0.80

Calls 3

setMethod · 0.95
getMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected