hybridse::vm::EngineOptions

#include <engine.h>

An options class for controlling engine behaviour.

Summary

Public functions

set_keep_ir(bool flag)

void Set if support to store ir results into SqlContext.

is_keep_ir() const

bool Return if support to store ir results into SqlContext.

set_compile_only(bool flag)

void

bool Return if only support to compile physical plan.

set_plan_only(bool flag)

void

is_plan_only() const

bool

uint32_t Return the maximum number of entries we can hold for compiling cache.

set_max_sql_cache_size(uint32_t size)

void Set the maxinum number of cache entries.

bool Return if the engine is performance sensitive.

EngineOptions * Set if the engine support cluster optimization.

bool Return if the engine support cluster optimization.

EngineOptions * Set if the engine supoort batch request optimization.

bool Return if the engine support batch request optimization.

EngineOptions * Set if the engine can support expression optimization.

bool Return if the engine support expression optimization.

EngineOptions * Set if the engine can support batch window parallelization.

bool Return if the engine support batch window parallelization.

EngineOptions * Set if the engine can support spark unsafe row format.

bool Return if the engine can support can support spark unsafe row format.

Public Functions

function EngineOptions

EngineOptions()

function set_keep_ir

inline void set_keep_ir(
    bool flag
)

Set if support to store ir results into SqlContext.

function is_keep_ir

inline bool is_keep_ir() const

Return if support to store ir results into SqlContext.

function set_compile_only

inline void set_compile_only(
    bool flag
)

Set if only support to compile SQL.

If set true, the engine won't generate runner plan as well.

function is_compile_only

inline bool is_compile_only() const

Return if only support to compile physical plan.

function set_plan_only

inline void set_plan_only(
    bool flag
)

Set if the engine only generate physical plan.

If set true, the engine won't build llvm jit.

function is_plan_only

inline bool is_plan_only() const

function max_sql_cache_size

inline uint32_t max_sql_cache_size() const

Return the maximum number of entries we can hold for compiling cache.

function set_max_sql_cache_size

inline void set_max_sql_cache_size(
    uint32_t size
)

Set the maxinum number of cache entries.

function set_performance_sensitive

inline void set_performance_sensitive(
    bool flag
)

Set if the engine is performance sensitive.

Normally, the engine can support more abilities under performance un-sensitive mode.

function is_performance_sensitive

inline bool is_performance_sensitive() const

Return if the engine is performance sensitive.

function set_cluster_optimized

inline EngineOptions * set_cluster_optimized(
    bool flag
)

Set if the engine support cluster optimization.

function is_cluster_optimzied

inline bool is_cluster_optimzied() const

Return if the engine support cluster optimization.

function set_batch_request_optimized

inline EngineOptions * set_batch_request_optimized(
    bool flag
)

Set if the engine supoort batch request optimization.

function is_batch_request_optimized

inline bool is_batch_request_optimized() const

Return if the engine support batch request optimization.

function set_enable_expr_optimize

inline EngineOptions * set_enable_expr_optimize(
    bool flag
)

Set if the engine can support expression optimization.

function is_enable_expr_optimize

inline bool is_enable_expr_optimize() const

Return if the engine support expression optimization.

function set_enable_batch_window_parallelization

inline EngineOptions * set_enable_batch_window_parallelization(
    bool flag
)

Set if the engine can support batch window parallelization.

function is_enable_batch_window_parallelization

inline bool is_enable_batch_window_parallelization() const

Return if the engine support batch window parallelization.

function set_enable_spark_unsaferow_format

inline EngineOptions * set_enable_spark_unsaferow_format(
    bool flag
)

Set if the engine can support spark unsafe row format.

function is_enable_spark_unsaferow_format

inline bool is_enable_spark_unsaferow_format() const

Return if the engine can support can support spark unsafe row format.

function jit_options

inline hybridse::vm::JitOptions & jit_options()

Return JitOptions.

Last updated