MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / compileFunc

Function compileFunc

src/function/path/properties_function.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static void compileFunc(FunctionBindData* bindData,
43 const std::vector<std::shared_ptr<ValueVector>>& parameters,
44 std::shared_ptr<ValueVector>& result) {
45 DASSERT(parameters[0]->dataType.getPhysicalType() == PhysicalTypeID::LIST);
46 auto& propertiesBindData = bindData->cast<PropertiesBindData>();
47 auto fieldVector = StructVector::getFieldVector(ListVector::getDataVector(parameters[0].get()),
48 propertiesBindData.childIdx);
49 ListVector::setDataVector(result.get(), fieldVector);
50}
51
52static void execFunc(const std::vector<std::shared_ptr<common::ValueVector>>& parameters,
53 const std::vector<common::SelectionVector*>& parameterSelVectors, common::ValueVector& result,

Callers 1

initFurtherMethod · 0.85

Calls 4

getDataVectorFunction · 0.50
setDataVectorFunction · 0.50
getPhysicalTypeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected