Package io.deephaven.engine.context
Class EmptyQueryScope
java.lang.Object
io.deephaven.engine.context.QueryScope
io.deephaven.engine.context.EmptyQueryScope
- All Implemented Interfaces:
LogOutputAppendable
-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.engine.context.QueryScope
QueryScope.MissingVariableException, QueryScope.StandaloneImpl -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> QueryScopeParam<T>createParam(String name) Get a QueryScopeParam by name.Get all known scope variable names.booleanhasParamName(String name) Check if the scope has the given name.voidputObjectFields(Object object) Add an object's public members (referenced reflectively, not a shallow copy!) to this scope if supported.<T> voidAdd a parameter to the scope.<T> TreadParamValue(String name) Get the value of a given scope parameter by name.<T> TreadParamValue(String name, T defaultValue) Get the value of a given scope parameter by name.Methods inherited from class io.deephaven.engine.context.QueryScope
addObjectFields, addParam, append, getParams, getParamValue
-
Field Details
-
INSTANCE
-
-
Method Details
-
getParamNames
Description copied from class:QueryScopeGet all known scope variable names.- Specified by:
getParamNamesin classQueryScope- Returns:
- A collection of scope variable names.
-
hasParamName
Description copied from class:QueryScopeCheck if the scope has the given name.- Specified by:
hasParamNamein classQueryScope- Parameters:
name- param name- Returns:
- True iff the scope has the given param name
-
createParam
protected <T> QueryScopeParam<T> createParam(String name) throws QueryScope.MissingVariableException Description copied from class:QueryScopeGet a QueryScopeParam by name.- Specified by:
createParamin classQueryScope- Parameters:
name- parameter name- Returns:
- newly-constructed QueryScopeParam (name + value-snapshot pair).
- Throws:
QueryScope.MissingVariableException- If any of the named scope variables does not exist.
-
readParamValue
Description copied from class:QueryScopeGet the value of a given scope parameter by name.- Specified by:
readParamValuein classQueryScope- Parameters:
name- parameter name.- Returns:
- parameter value.
- Throws:
QueryScope.MissingVariableException- If no such scope parameter exists.
-
readParamValue
Description copied from class:QueryScopeGet the value of a given scope parameter by name.- Specified by:
readParamValuein classQueryScope- Parameters:
name- parameter name.defaultValue- default parameter value.- Returns:
- parameter value, or the default parameter value, if the value is not present.
-
putParam
Description copied from class:QueryScopeAdd a parameter to the scope.- Specified by:
putParamin classQueryScope- Parameters:
name- parameter name.value- parameter value.
-
putObjectFields
Description copied from class:QueryScopeAdd an object's public members (referenced reflectively, not a shallow copy!) to this scope if supported. Note: This is an optional method.- Specified by:
putObjectFieldsin classQueryScope- Parameters:
object- object to add public members from.
-