@@ -37,7 +37,7 @@ interface IQueryExecutor<out In> {
37
37
38
38
class SimpleQueryExecutor <E >(val input : E ) : IQueryExecutor<E> {
39
39
override fun <ElementOut > createFlow (query : IUnboundQuery <E , * , ElementOut >): StepFlow <ElementOut > {
40
- return query.asFlow(QueryEvaluationContext .EMPTY , input)
40
+ return query.asFlow(QueryEvaluationContext .EMPTY , input.asStepOutput( null ) )
41
41
}
42
42
}
43
43
@@ -105,9 +105,8 @@ private class FluxBoundQuery<In, Out>(executor: IQueryExecutor<In>, override val
105
105
106
106
interface IUnboundQuery <in In , out AggregationOut , out ElementOut > {
107
107
val reference: IQueryReference <IUnboundQuery <In , AggregationOut , ElementOut >>
108
- suspend fun execute (evaluationContext : QueryEvaluationContext , input : In ): IStepOutput <AggregationOut >
108
+ suspend fun execute (evaluationContext : QueryEvaluationContext , input : IStepOutput < In > ): IStepOutput <AggregationOut >
109
109
fun asFlow (evaluationContext : QueryEvaluationContext , input : StepFlow <In >): StepFlow <ElementOut >
110
- fun asFlow (evaluationContext : QueryEvaluationContext , input : In ): StepFlow <ElementOut > = asFlow(evaluationContext, flowOf(input).asStepFlow(null ))
111
110
fun asFlow (evaluationContext : QueryEvaluationContext , input : IStepOutput <In >): StepFlow <ElementOut > = asFlow(evaluationContext, flowOf(input))
112
111
fun asSequence (evaluationContext : QueryEvaluationContext , input : Sequence <In >): Sequence <ElementOut >
113
112
@@ -165,7 +164,7 @@ class MonoUnboundQuery<In, ElementOut>(
165
164
166
165
override fun bind (executor : IQueryExecutor <In >): IMonoQuery <ElementOut > = MonoBoundQuery (executor, this )
167
166
168
- override suspend fun execute (evaluationContext : QueryEvaluationContext , input : In ): IStepOutput <ElementOut > {
167
+ override suspend fun execute (evaluationContext : QueryEvaluationContext , input : IStepOutput < In > ): IStepOutput <ElementOut > {
169
168
try {
170
169
return asFlow(evaluationContext, input).single()
171
170
} catch (ex: NoSuchElementException ) {
@@ -212,7 +211,7 @@ class FluxUnboundQuery<In, ElementOut>(
212
211
213
212
override fun bind (executor : IQueryExecutor <In >): IFluxQuery <ElementOut > = FluxBoundQuery (executor, this )
214
213
215
- override suspend fun execute (evaluationContext : QueryEvaluationContext , input : In ): IStepOutput <List <IStepOutput <ElementOut >>> {
214
+ override suspend fun execute (evaluationContext : QueryEvaluationContext , input : IStepOutput < In > ): IStepOutput <List <IStepOutput <ElementOut >>> {
216
215
return asFlow(evaluationContext, input).toList().asStepOutput(null )
217
216
}
218
217
0 commit comments