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

Method ReadMetadataAsync

cpp/src/arrow/io/interfaces.cc:124–129  ·  view source on GitHub ↗

Default ReadMetadataAsync() implementation: simply issue the read on the context's executor

Source from the content-addressed store, hash-verified

122// Default ReadMetadataAsync() implementation: simply issue the read on the context's
123// executor
124Future<std::shared_ptr<const KeyValueMetadata>> InputStream::ReadMetadataAsync(
125 const IOContext& ctx) {
126 std::shared_ptr<InputStream> self =
127 std::dynamic_pointer_cast<InputStream>(shared_from_this());
128 return DeferNotOk(internal::SubmitIO(ctx, [self] { return self->ReadMetadata(); }));
129}
130
131Future<std::shared_ptr<const KeyValueMetadata>> InputStream::ReadMetadataAsync() {
132 return ReadMetadataAsync(io_context());

Callers

nothing calls this directly

Calls 4

ReadMetadataMethod · 0.95
DeferNotOkFunction · 0.85
SubmitIOFunction · 0.85
io_contextFunction · 0.85

Tested by

no test coverage detected