Package io.deephaven.query.parameterized
Interface ParameterizedQueryBuilder
- All Known Implementing Classes:
ParameterizedQueryBuilderImpl
A Builder patterned object to construct a
ParameterizedQuery
. Users should acquire an instance
from ParameterizedQuery.create()
-
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.willDo
(Consumer<ParameterScope> queryCode) Set the work to be done when all of the parameters are available.default ParameterizedQueryBuilder
with
(ParameterBuilder param) Add the specifiedParameter
to the list of parameters for this query.
-
Method Details
-
build
Construct aParameterizedQuery
from this builder's configuration- Returns:
- a completed ParameterizedQuery
-
requireComputeLock
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 inwillDo(Consumer)
will not perform any operations that require theshared lock
. If any operation does require the lock, then the query will produce undefined results.- Parameters:
requiresLock
- if the operation requires theLiveTableMonitor.sharedLock()
- Returns:
- this builder
-
with
Add the specifiedParameter
to the list of parameters for this query.- Parameters:
param
- the parmeter- Returns:
- this builder
-
with
-
willDo
Set the work to be done when all of the parameters are available.- Parameters:
queryCode
- the code to execute- Returns:
- this builder.
-