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

Method BuildValueAndValidity

cpp/src/gandiva/llvm_generator.cc:1244–1255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1242}
1243
1244LValuePtr LLVMGenerator::Visitor::BuildValueAndValidity(const ValueValidityPair& pair) {
1245 // generate code for value
1246 auto value_expr = pair.value_expr();
1247 value_expr->Accept(*this);
1248 auto value = result()->data();
1249 auto length = result()->length();
1250
1251 // generate code for validity
1252 auto validity = BuildCombinedValidity(pair.validity_exprs());
1253
1254 return std::make_shared<LValue>(value, length, validity);
1255}
1256
1257LValuePtr LLVMGenerator::Visitor::BuildFunctionCall(const NativeFunction* func,
1258 DataTypePtr arrow_return_type,

Callers

nothing calls this directly

Calls 4

resultFunction · 0.85
AcceptMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected