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

Method SelectionVector

cpp/src/arrow/compute/exec.cc:1336–1341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334// SelectionVector
1335
1336SelectionVector::SelectionVector(std::shared_ptr<ArrayData> data)
1337 : data_(std::move(data)) {
1338 DCHECK_EQ(Type::INT32, data_->type->id());
1339 DCHECK_EQ(0, data_->GetNullCount());
1340 indices_ = data_->GetValues<int32_t>(1);
1341}
1342
1343SelectionVector::SelectionVector(const Array& arr) : SelectionVector(arr.data()) {}
1344

Callers

nothing calls this directly

Calls 3

GetNullCountMethod · 0.80
idMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected