| 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> |
nothing calls this directly
no test coverage detected