Marko A. Rodriguez created TINKERPOP-1479:
---------------------------------------------

             Summary: Support write-traversals in SubgraphStrategy.
                 Key: TINKERPOP-1479
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1479
             Project: TinkerPop
          Issue Type: Improvement
          Components: process
    Affects Versions: 3.2.2
            Reporter: Marko A. Rodriguez


I think it is possible to have timestamps/acl/audit all via SubgraphStrategy. 
What we really need is SubgraphStrategy write()-methods.

{code}
SubgraphStrategy.writeVertex(property(‘createdBy’,’marko’).property(’startTime’,1234).property(‘acl’,’public’))
SubgraphStrategy.writeVertexProperty(property(‘createdBy’,’marko’).property(’startTime’,1234).property(‘acl’,’public’))
{code}

With this:

{code}
g.addV(‘person’).property(‘name’,’bob’)
{code}

…is rewritten as:

{code}
g.addV(‘person’).
    sideEffect(property(‘createdBy’,’marko’).
               property(’startTime’,1234).
               property(‘acl’,’public’)).
  property(‘name’,’bob’).
    sideEffect(property(‘name’).
               property(‘createdBy’,’marko’).
               property(’startTime’,1234).
               property(‘acl’,’public’))
{code}

That is, when a MutationStep is used, the respective writeXXX() traversal is 
appended inside a sideEffect() much like for reads, its inside a filter().

Haven’t thought it all through, but with such functionality, I think everything 
could, in principle, be done by SubgraphStrategy.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to