Zorba_CompilerHints

#include <zorba/options.h>

Set of hints that can be passed to the query compiler. An instance of this class can be passed to the compileQuery function of the Zorba class or the compile function of this class. The members of this class represent hints that are passed to the query compiler. For example, whether optimization of the query should be done (O1) or not (O0).example_6 in file simple.cpp shows an example how CompilerHints can be used.

Public Attributes

Zorba_opt_bool_t

for_serialization_only

By default, this flag is set to false.

Zorba_opt_bool_t

lib_module

Treat the query as a library module.

Zorba_opt_level_t

opt_level

The optimization level that is used.

Public Attributes

for_serialization_only

Zorba_opt_bool_t for_serialization_only

By default, this flag is set to false.

Applications may set it to true if they plan to execute the query only via one of the methods that serialize the query result.

lib_module

Zorba_opt_bool_t lib_module

Treat the query as a library module.

opt_level

The optimization level that is used.