Package io.deephaven.engine.context
Class ExecutionContext.Builder
java.lang.Object
io.deephaven.engine.context.ExecutionContext.Builder
- Enclosing class:
- ExecutionContext
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Use the current ExecutionContext's QueryCompiler instance.Use the current ExecutionContext's QueryLibrary instance.Use the current ExecutionContext's QueryScope instance.captureQueryScopeVars
(String... vars) Instantiate a new QueryScope and initialize with values from the current ExecutionContext.Deprecated, for removal: This API element is subject to removal in a future version.The update graph is automatically captured, this method should no longer be needed.Use a query scope that is immutably empty.A systemic execution context is one that is supplied by the system and not the user.Instantiate an empty query library.newQueryLibrary
(String libraryVersion) Instantiate an empty query library using the provided libraryVersion.Instantiate a new query scope.setOperationInitializer
(OperationInitializer operationInitializer) Use the specified operation initializer instead of the captured instance.setQueryCompiler
(QueryCompiler queryCompiler) Use the provided QueryCompilersetQueryLibrary
(QueryLibrary queryLibrary) Use the provided QueryLibrary.setQueryScope
(QueryScope queryScope) Use the provided QueryScope.setUpdateGraph
(UpdateGraph updateGraph) Use the provided UpdateGraph.
-
Method Details
-
markSystemic
A systemic execution context is one that is supplied by the system and not the user. A systemic context will not be recorded when work is deferred. -
newQueryLibrary
Instantiate an empty query library. -
newQueryLibrary
Instantiate an empty query library using the provided libraryVersion. This is useful for testing. -
setQueryLibrary
Use the provided QueryLibrary. -
captureQueryLibrary
Use the current ExecutionContext's QueryLibrary instance. -
setQueryCompiler
Use the provided QueryCompiler -
captureQueryCompiler
Use the current ExecutionContext's QueryCompiler instance. -
emptyQueryScope
Use a query scope that is immutably empty. -
newQueryScope
Instantiate a new query scope. -
setQueryScope
Use the provided QueryScope. -
captureQueryScope
Use the current ExecutionContext's QueryScope instance.- ApiNote:
- This captures a reference to the current, likely mutable, query scope state. Future changes to the query scope may cause deferred operations to fail. Additionally, there is risk of GC leakage should the query scope be otherwise unreachable.
-
captureQueryScopeVars
Instantiate a new QueryScope and initialize with values from the current ExecutionContext.- Parameters:
vars
- the variable names to copy from the current ExecutionContext's QueryScope
-
setUpdateGraph
Use the provided UpdateGraph. -
captureUpdateGraph
@ScriptApi @Deprecated(forRemoval=true, since="0.31") public ExecutionContext.Builder captureUpdateGraph()Deprecated, for removal: This API element is subject to removal in a future version.The update graph is automatically captured, this method should no longer be needed.Use the current ExecutionContext's UpdateGraph instance. -
setOperationInitializer
@ScriptApi public ExecutionContext.Builder setOperationInitializer(OperationInitializer operationInitializer) Use the specified operation initializer instead of the captured instance. -
build
- Returns:
- the newly instantiated ExecutionContext
-