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

Method relativeRoot

src/org/apache/pig/impl/io/FileLocalizer.java:464–471  ·  view source on GitHub ↗

Accessor method to get the root ContainerDescriptor used for temporary files bound to this thread. Calling this method lazy-initialized the relativeRoot object. @param pigContext @return @throws DataStorageException

(final PigContext pigContext)

Source from the content-addressed store, hash-verified

462 * @throws DataStorageException
463 */
464 private static synchronized ContainerDescriptor relativeRoot(final PigContext pigContext)
465 throws DataStorageException {
466 if (relativeRoot.get() == null) {
467 ContainerDescriptor relative = getTempContainer(pigContext);
468 relativeRoot.set(relative);
469 }
470 return relativeRoot.get();
471 }
472
473 /**
474 * Accessor method to get the resource ContainerDescriptor used for tez resource

Callers 1

getTemporaryPathMethod · 0.95

Calls 3

getTempContainerMethod · 0.95
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected