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

Method BuildValueAndValidity

cpp/src/gandiva/llvm_generator.cc:1242–1253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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