Record Class CompilerOptions
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.trace.CompilerOptions
public record CompilerOptions(boolean enableTracing, boolean enableStage1Optimization, boolean enableStage2Optimization, boolean enableConstantFolding, boolean enableDirectionSelection, boolean enableFilterPushdown, boolean enableExperimental2HopFusion, int disabledPassesMask, PassTraceListener traceListener, Map<String,Object> parameters)
extends Record
Configuration options, 14-pass optimization bitmask (SQLite
SQLITE_TESTCTRL_OPTIMIZATIONS pattern), and parameter bindings for the
ImpScheme compiler pipeline.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CompilerOptionsstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionCompilerOptions(boolean enableTracing, boolean enableStage1Optimization, boolean enableStage2Optimization, boolean enableConstantFolding, boolean enableDirectionSelection, boolean enableFilterPushdown, boolean enableExperimental2HopFusion, int disabledPassesMask, PassTraceListener traceListener, Map<String, Object> parameters) Creates an instance of aCompilerOptionsrecord class.CompilerOptions(boolean enableTracing, boolean enableStage1Optimization, boolean enableStage2Optimization, boolean enableConstantFolding, boolean enableDirectionSelection, boolean enableFilterPushdown, boolean enableExperimental2HopFusion, PassTraceListener traceListener, Map<String, Object> parameters) CompilerOptions(boolean enableTracing, boolean enableStage1Optimization, boolean enableStage2Optimization, boolean enableConstantFolding, boolean enableDirectionSelection, boolean enableFilterPushdown, PassTraceListener traceListener) -
Method Summary
Modifier and TypeMethodDescriptionstatic CompilerOptions.Builderbuilder()intReturns the value of thedisabledPassesMaskrecord component.intEffective bitmask combining this instance'sdisabledPassesMaskwith the globalImpulseTestControl.getDisabledOptimizationsMask().booleanReturns the value of theenableConstantFoldingrecord component.booleanReturns the value of theenableDirectionSelectionrecord component.booleanReturns the value of theenableExperimental2HopFusionrecord component.booleanReturns the value of theenableFilterPushdownrecord component.booleanReturns the value of theenableStage1Optimizationrecord component.booleanReturns the value of theenableStage2Optimizationrecord component.booleanReturns the value of theenableTracingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisOptimizationDisabled(int optFlag) SQLiteOptimizationDisabled(db, mask)equivalent.Returns the value of theparametersrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetraceListenerrecord component.
-
Field Details
-
OPT_AST_NORMALIZATION
public static final int OPT_AST_NORMALIZATION- See Also:
-
OPT_CONSTANT_FOLDING
public static final int OPT_CONSTANT_FOLDING- See Also:
-
OPT_CEL_PREDICATE_FLATTENING
public static final int OPT_CEL_PREDICATE_FLATTENING- See Also:
-
OPT_MONOTONIC_HOMOMORPHISM
public static final int OPT_MONOTONIC_HOMOMORPHISM- See Also:
-
OPT_ZONE_MAP_PRUNING
public static final int OPT_ZONE_MAP_PRUNING- See Also:
-
OPT_ALGEBRAIC_TYPE_INFERENCE
public static final int OPT_ALGEBRAIC_TYPE_INFERENCE- See Also:
-
OPT_DIRECTION_SELECTION
public static final int OPT_DIRECTION_SELECTION- See Also:
-
OPT_FILTER_PUSHDOWN
public static final int OPT_FILTER_PUSHDOWN- See Also:
-
OPT_KERNEL_FUSION_2HOP
public static final int OPT_KERNEL_FUSION_2HOP- See Also:
-
OPT_INJECTIVE_DEDUP_BYPASS
public static final int OPT_INJECTIVE_DEDUP_BYPASS- See Also:
-
OPT_VIRTUAL_REL_DECOMP
public static final int OPT_VIRTUAL_REL_DECOMP- See Also:
-
OPT_CEL_AST_OPTIMIZER
public static final int OPT_CEL_AST_OPTIMIZER- See Also:
-
OPT_METHOD_HANDLE_JIT
public static final int OPT_METHOD_HANDLE_JIT- See Also:
-
OPT_SIMD_VECTOR_SPECIES
public static final int OPT_SIMD_VECTOR_SPECIES- See Also:
-
OPT_ALL_ENABLED
public static final int OPT_ALL_ENABLED- See Also:
-
OPT_ALL_DISABLED
public static final int OPT_ALL_DISABLED- See Also:
-
DEFAULT
-
-
Constructor Details
-
CompilerOptions
public CompilerOptions(boolean enableTracing, boolean enableStage1Optimization, boolean enableStage2Optimization, boolean enableConstantFolding, boolean enableDirectionSelection, boolean enableFilterPushdown, boolean enableExperimental2HopFusion, PassTraceListener traceListener, Map<String, Object> parameters) -
CompilerOptions
public CompilerOptions(boolean enableTracing, boolean enableStage1Optimization, boolean enableStage2Optimization, boolean enableConstantFolding, boolean enableDirectionSelection, boolean enableFilterPushdown, PassTraceListener traceListener) -
CompilerOptions
public CompilerOptions(boolean enableTracing, boolean enableStage1Optimization, boolean enableStage2Optimization, boolean enableConstantFolding, boolean enableDirectionSelection, boolean enableFilterPushdown, boolean enableExperimental2HopFusion, int disabledPassesMask, PassTraceListener traceListener, Map<String, Object> parameters) Creates an instance of aCompilerOptionsrecord class.- Parameters:
enableTracing- the value for theenableTracingrecord componentenableStage1Optimization- the value for theenableStage1Optimizationrecord componentenableStage2Optimization- the value for theenableStage2Optimizationrecord componentenableConstantFolding- the value for theenableConstantFoldingrecord componentenableDirectionSelection- the value for theenableDirectionSelectionrecord componentenableFilterPushdown- the value for theenableFilterPushdownrecord componentenableExperimental2HopFusion- the value for theenableExperimental2HopFusionrecord componentdisabledPassesMask- the value for thedisabledPassesMaskrecord componenttraceListener- the value for thetraceListenerrecord componentparameters- the value for theparametersrecord component
-
-
Method Details
-
effectiveDisabledPassesMask
public int effectiveDisabledPassesMask()Effective bitmask combining this instance'sdisabledPassesMaskwith the globalImpulseTestControl.getDisabledOptimizationsMask(). -
isOptimizationDisabled
public boolean isOptimizationDisabled(int optFlag) SQLiteOptimizationDisabled(db, mask)equivalent. -
builder
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enableTracing
public boolean enableTracing()Returns the value of theenableTracingrecord component.- Returns:
- the value of the
enableTracingrecord component
-
enableStage1Optimization
public boolean enableStage1Optimization()Returns the value of theenableStage1Optimizationrecord component.- Returns:
- the value of the
enableStage1Optimizationrecord component
-
enableStage2Optimization
public boolean enableStage2Optimization()Returns the value of theenableStage2Optimizationrecord component.- Returns:
- the value of the
enableStage2Optimizationrecord component
-
enableConstantFolding
public boolean enableConstantFolding()Returns the value of theenableConstantFoldingrecord component.- Returns:
- the value of the
enableConstantFoldingrecord component
-
enableDirectionSelection
public boolean enableDirectionSelection()Returns the value of theenableDirectionSelectionrecord component.- Returns:
- the value of the
enableDirectionSelectionrecord component
-
enableFilterPushdown
public boolean enableFilterPushdown()Returns the value of theenableFilterPushdownrecord component.- Returns:
- the value of the
enableFilterPushdownrecord component
-
enableExperimental2HopFusion
public boolean enableExperimental2HopFusion()Returns the value of theenableExperimental2HopFusionrecord component.- Returns:
- the value of the
enableExperimental2HopFusionrecord component
-
disabledPassesMask
public int disabledPassesMask()Returns the value of thedisabledPassesMaskrecord component.- Returns:
- the value of the
disabledPassesMaskrecord component
-
traceListener
Returns the value of thetraceListenerrecord component.- Returns:
- the value of the
traceListenerrecord component
-
parameters
-