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

Method DecodeFunction

cpp/src/arrow/engine/substrait/extension_set.cc:319–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319Result<Id> ExtensionSet::DecodeFunction(uint32_t anchor) const {
320 if (functions_.find(anchor) == functions_.end() || functions_.at(anchor).empty()) {
321 return Status::Invalid("User defined function reference ", anchor,
322 " did not have a corresponding anchor in the extension set");
323 }
324 return functions_.at(anchor);
325}
326
327Result<uint32_t> ExtensionSet::EncodeFunction(Id function_id) {
328 RETURN_NOT_OK(this->AddUri(function_id));

Callers

nothing calls this directly

Calls 4

InvalidFunction · 0.50
findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected