MCPcopy Create free account
hub / github.com/apache/impala / getAbsolutePath

Method getAbsolutePath

fe/src/main/java/org/apache/impala/analysis/Path.java:577–593  ·  view source on GitHub ↗

Returns the absolute physical path in positions starting from the schema root to the destination of this path.

()

Source from the content-addressed store, hash-verified

575 * destination of this path.
576 */
577 public List<Integer> getAbsolutePath() {
578 if (absolutePath_ != null) return absolutePath_;
579 Preconditions.checkState(isResolved_);
580 absolutePath_ = new ArrayList<>();
581 if (rootDesc_ != null) absolutePath_.addAll(rootDesc_.getPath().getAbsolutePath());
582 absolutePath_.addAll(matchedPositions_);
583 // ACID table schema path differs from file schema path. Let's convert it here.
584 if (!absolutePath_.isEmpty() &&
585 // Only convert if path was already absolute. Otherwise 'matchedPositions_' is
586 // relative to a path that we have already converted.
587 matchedPositions_.size() == absolutePath_.size() &&
588 rootTable_ != null &&
589 AcidUtils.isFullAcidTable(rootTable_.getMetaStoreTable().getParameters())) {
590 convertToFullAcidFilePath();
591 }
592 return absolutePath_;
593 }
594
595 /**
596 * Converts table schema path to file schema path. Well, it's actually somewhere between

Callers 15

setupAdmissionControlMethod · 0.45
setupAdmissionControlMethod · 0.45
testSlotRefPathMethod · 0.45
testStarPathMethod · 0.45
testTableRefPathMethod · 0.45
mainMethod · 0.45
createPoolServiceMethod · 0.45
createHiveCatalogMethod · 0.45
populateFileFormatsMethod · 0.45
applyDeletionVectorMethod · 0.45

Calls 8

isFullAcidTableMethod · 0.95
addAllMethod · 0.80
getParametersMethod · 0.65
getMetaStoreTableMethod · 0.65
getPathMethod · 0.45
isEmptyMethod · 0.45
sizeMethod · 0.45

Tested by 11

setupAdmissionControlMethod · 0.36
setupAdmissionControlMethod · 0.36
testSlotRefPathMethod · 0.36
testStarPathMethod · 0.36
testTableRefPathMethod · 0.36
mainMethod · 0.36
createPoolServiceMethod · 0.36
createHiveCatalogMethod · 0.36
setupAdmissionControlMethod · 0.36