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

Method ExecuteImpl

cpp/src/arrow/compute/kernels/vector_rank.cc:325–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 using MetaFunction::MetaFunction;
324
325 Result<Datum> ExecuteImpl(const std::vector<Datum>& args,
326 const FunctionOptions* options,
327 ExecContext* ctx) const override {
328 switch (args[0].kind()) {
329 case Datum::ARRAY: {
330 return Rank(*args[0].make_array(), *options, ctx);
331 } break;
332 case Datum::CHUNKED_ARRAY: {
333 return Rank(*args[0].chunked_array(), *options, ctx);
334 } break;
335 default:
336 break;
337 }
338 return Status::NotImplemented(
339 "Unsupported types for rank operation: "
340 "values=",
341 args[0].ToString());
342 }
343
344 protected:
345 template <typename T>

Callers

nothing calls this directly

Calls 5

make_arrayMethod · 0.80
chunked_arrayMethod · 0.80
NotImplementedFunction · 0.50
kindMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected