MCPcopy Create free account
hub / github.com/apache/arrow / parent

Method parent

cpp/src/arrow/filesystem/s3fs.cc:582–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580 }
581
582 S3Path parent() const {
583 DCHECK(!key_parts.empty());
584 auto parent = S3Path{"", bucket, "", key_parts};
585 parent.key_parts.pop_back();
586 parent.key = internal::JoinAbstractPath(parent.key_parts);
587 parent.full_path = parent.bucket + kSep + parent.key;
588 return parent;
589 }
590
591 bool has_parent() const { return !key.empty(); }
592

Callers 15

run-test.rbFile · 0.45
test_parentMethod · 0.45
garrow_buffer_get_parentFunction · 0.45
CopyNonOwnedToMethod · 0.45
ViewBufferToMethod · 0.45
FromBufferMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
EnsureParentExistsMethod · 0.45
CreateDirMethod · 0.45
TEST_FFunction · 0.45
FromNodeMethod · 0.45

Calls 2

JoinAbstractPathFunction · 0.85
emptyMethod · 0.45

Tested by 12

test_parentMethod · 0.36
CopyNonOwnedToMethod · 0.36
ViewBufferToMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
ComputeLevelInfoFunction · 0.36
detect_versionsMethod · 0.36
setupMethod · 0.36
setupMethod · 0.36