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 aParameterizedQuery
from this builder's configurationrequireComputeLock
(boolean requiresLock) Set whether invocations of the query will take theshared lock
before 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 specifiedParameter
to the list of parameters for this query.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.query.parameterized.ParameterizedQueryBuilder
with
-
Constructor Details
-
ParameterizedQueryBuilderImpl
public ParameterizedQueryBuilderImpl()
-
-
Method Details
-
build
Description copied from interface:ParameterizedQueryBuilder
Construct aParameterizedQuery
from this builder's configuration- Specified by:
build
in interfaceParameterizedQueryBuilder
- Returns:
- a completed ParameterizedQuery
-
with
Description copied from interface:ParameterizedQueryBuilder
Add the specifiedParameter
to the list of parameters for this query.- Specified by:
with
in interfaceParameterizedQueryBuilder
- Parameters:
param
- the parmeter- Returns:
- this builder
-
willDo
Description copied from interface:ParameterizedQueryBuilder
Set the work to be done when all of the parameters are available.- Specified by:
willDo
in interfaceParameterizedQueryBuilder
- Parameters:
queryCode
- the code to execute- Returns:
- this builder.
-
requireComputeLock
Description copied from interface:ParameterizedQueryBuilder
Set whether invocations of the query will take theshared lock
before 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:
requireComputeLock
in interfaceParameterizedQueryBuilder
- Parameters:
requiresLock
- if the operation requires theLiveTableMonitor.sharedLock()
- Returns:
- this builder
-
visibleTo
Description copied from interface:ParameterizedQueryBuilder
Set the list of groups this widget is visible to.- Specified by:
visibleTo
in interfaceParameterizedQueryBuilder
- Parameters:
viewerGroups
- the groups allowed to see this widget- Returns:
- this builder.
-