Class ParameterizedQueryBuilderImpl
java.lang.Object
io.deephaven.query.parameterized.impl.ParameterizedQueryBuilderImpl
- All Implemented Interfaces:
ParameterizedQueryBuilder
The default implementation of a
ParameterizedQueryBuilder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Construct aParameterizedQueryfrom this builder's configurationrequireComputeLock(boolean requiresLock) Set whether invocations of the query will take theshared lockbefore executing the computation.Set the list of groups this widget is visible to.willDo(Consumer<ParameterScope> queryCode) Set the work to be done when all of the parameters are available.Add the specifiedParameterto the list of parameters for this query.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.query.parameterized.ParameterizedQueryBuilder
with
-
Constructor Details
-
ParameterizedQueryBuilderImpl
public ParameterizedQueryBuilderImpl()
-
-
Method Details
-
build
Description copied from interface:ParameterizedQueryBuilderConstruct aParameterizedQueryfrom this builder's configuration- Specified by:
buildin interfaceParameterizedQueryBuilder- Returns:
- a completed ParameterizedQuery
-
with
Description copied from interface:ParameterizedQueryBuilderAdd the specifiedParameterto the list of parameters for this query.- Specified by:
within interfaceParameterizedQueryBuilder- Parameters:
param- the parmeter- Returns:
- this builder
-
willDo
Description copied from interface:ParameterizedQueryBuilderSet the work to be done when all of the parameters are available.- Specified by:
willDoin interfaceParameterizedQueryBuilder- Parameters:
queryCode- the code to execute- Returns:
- this builder.
-
requireComputeLock
Description copied from interface:ParameterizedQueryBuilderSet whether invocations of the query will take theshared lockbefore executing the computation. If this is set to falsefalse, the query writer is guaranteeing that the work inParameterizedQueryBuilder.willDo(Consumer)will not perform any operations that require theshared lock. If any operation does require the lock, then the query will produce undefined results.- Specified by:
requireComputeLockin interfaceParameterizedQueryBuilder- Parameters:
requiresLock- if the operation requires theLiveTableMonitor.sharedLock()- Returns:
- this builder
-
visibleTo
Description copied from interface:ParameterizedQueryBuilderSet the list of groups this widget is visible to.- Specified by:
visibleToin interfaceParameterizedQueryBuilder- Parameters:
viewerGroups- the groups allowed to see this widget- Returns:
- this builder.
-