Custom Execution Plan
Here is an example in C++ of creating a custom execution plan with a hard-coded engine and knobs. Refer to the corresponding C++ sample in samples/cpp/misc/custom_plan.cpp.
Get the Engine Count
Parameters
count: number of engines [out parameter]
Return Value
- An
error_tobject indicating the success or failure of the function.
Get the Knobs Supported by an Engine
Parameters
engine: engine indexknobs: list of knobs [out parameter]
Return Value
- An
error_tobject indicating the success or failure of the function.
Create Plan with a Particular Engine and Knobs
Parameters
engine_id: engine indexknobs: knobs
Return Value
- An
error_tobject indicating the success or failure of the function.