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)
| 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 |
no test coverage detected