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 2017/02/15 00:44:44 UTC
[jira] [Updated] (TINKERPOP-800) [Proposal] Domain/Range checking
during traversal construction.
[ https://issues.apache.org/jira/browse/TINKERPOP-800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stephen mallette updated TINKERPOP-800:
---------------------------------------
Fix Version/s: (was: 3.2.4)
3.2.5
> [Proposal] Domain/Range checking during traversal construction.
> ---------------------------------------------------------------
>
> Key: TINKERPOP-800
> URL: https://issues.apache.org/jira/browse/TINKERPOP-800
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.0.2-incubating
> Reporter: Marko A. Rodriguez
> Assignee: Marko A. Rodriguez
> Labels: breaking
> Fix For: 3.2.5
>
>
> I think we should add two new methods to {{Step}}.
> {code}
> Step.getDomain() -> Class
> Step.getRange() -> Class
> {code}
> Now, when someone does:
> {code}
> g.V().out()
> {code}
> {{GraphStep}} will report that its range is {{Vertex.class}}. {{VertexStep}} will report its domain to be {{Vertex.class}}. Good. No typing issues. However, when you do this:
> {code}
> g.E().out()
> {code}
> {{GraphStep}} will report that its range is {{Edge.class}}. {{VertexStep}} will report its domain to be {{Vertex.class}} --- {{IllegalArgumentException: "The provided traversal has an illegal function composition."}}.
> Why is this good -- much better than getting random {{ClassCastExceptions}} at execution time.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)