[
https://issues.apache.org/jira/browse/IGNITE-22478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aleksandr updated IGNITE-22478:
-------------------------------
Description:
It seems like execute(Object... args) is an overkill for the "basic" compute
api. We agreed that we are going to support the only one input argument in the
low-level API. The goal of this ticket is to refactor the existing API so that
we will have:
ComputeJob<T, R> {
R execute(ExcecutionContext ctx, T input)
}
The type of the I is primitive for this ticket. We are not going to think: "How
do we pass complex objects?". This will be solved in following tickets.
was:
It seems like execute(Object... args) is an overkill for the "basic" compute
api. We agreed that we are going to support the only one input argument in the
low-level API. The goal of this ticket is to refactor the existing API so that
we will have:
ComputeJob<I, O> {
O execute(ExcecutionContext ctx, I input)
}
The type of the I is primitive for this ticket. We are not going to think: "How
do we pass complex objects?". This will be solved in following tickets.
> Change Compute API
> ------------------
>
> Key: IGNITE-22478
> URL: https://issues.apache.org/jira/browse/IGNITE-22478
> Project: Ignite
> Issue Type: Improvement
> Components: compute
> Reporter: Aleksandr
> Assignee: Aleksandr
> Priority: Major
> Labels: ignite-3
>
> It seems like execute(Object... args) is an overkill for the "basic" compute
> api. We agreed that we are going to support the only one input argument in
> the low-level API. The goal of this ticket is to refactor the existing API so
> that we will have:
> ComputeJob<T, R> {
> R execute(ExcecutionContext ctx, T input)
> }
> The type of the I is primitive for this ticket. We are not going to think:
> "How do we pass complex objects?". This will be solved in following tickets.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)