You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2021/04/28 19:08:00 UTC
[jira] [Assigned] (TINKERPOP-819) Mapping Cardinality Interface
[ https://issues.apache.org/jira/browse/TINKERPOP-819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Mallette reassigned TINKERPOP-819:
------------------------------------------
Assignee: Stephen Mallette (was: Marko A. Rodriguez)
> Mapping Cardinality Interface
> -----------------------------
>
> Key: TINKERPOP-819
> URL: https://issues.apache.org/jira/browse/TINKERPOP-819
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.0.2-incubating
> Reporter: Marko A. Rodriguez
> Assignee: Stephen Mallette
> Priority: Minor
> Labels: breaking
>
> I think it would be handy (for some {{sack()}} work I'm doing on merging/splitting sacks), but also in general as I've wanted this before (can't remember why). I think we should add the following interfaces.
> {code}
> ManyToOneMapping (e.g. reducing barriers)
> OneToManyMapping (e.g. flatmap)
> OneToOneMapping (e.g. map, sideeffects)
> OneToOneOrNoneMapping (e.g. filter)
> {code}
> We can just rely on {{instanceof FlatMapStep}} or {{instanceof MapStep}} as there are steps that are "map steps" but don't extend {{MapStep}}, but instead {{AbstractStep}}. Either we make it so that all steps MUST extend from {{FlatMapStep}}, {{MapStep}}, etc. or we can add the above interfaces.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)