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

Function Take

cpp/src/arrow/compute/api_vector.cc:419–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419Result<Datum> Take(const Datum& values, const Datum& indices, const TakeOptions& options,
420 ExecContext* ctx) {
421 // Invoke metafunction which deals with Datum kinds other than just Array,
422 // ChunkedArray.
423 return CallFunction("take", {values, indices}, &options, ctx);
424}
425
426Result<std::shared_ptr<Array>> Take(const Array& values, const Array& indices,
427 const TakeOptions& options, ExecContext* ctx) {

Callers 15

garrow_takeFunction · 0.85
TakeRowsMethod · 0.85
TEST_PFunction · 0.85
DoFinishMethod · 0.85
DoFinishMethod · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.85
TESTFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.85
TakeCACFunction · 0.85
TakeCCCFunction · 0.85
TakeRARFunction · 0.85
TakeTATFunction · 0.85

Calls 2

CallFunctionFunction · 0.85
make_arrayMethod · 0.80

Tested by 9

TEST_PFunction · 0.68
ASSERT_OK_AND_ASSIGNFunction · 0.68
TESTFunction · 0.68
ARROW_ASSIGN_OR_RAISEFunction · 0.68
TakeCACFunction · 0.68
TakeCCCFunction · 0.68
TakeRARFunction · 0.68
TakeTATFunction · 0.68
TakeTCTFunction · 0.68