+1
On toPipe
Also, I would love to make >> explicit like emit() or so. These two constructs lead to a lot of errors and confusion...
/Peter
On Sunday, August 28, 2011, Pierre De Wilde <
pierre...@gmail.com> wrote:
> Hi Marko,
> Both makes sense but I concur by your last argument: g.v() is just a "getter" of vertices.
> g.v(2,3,4)._() implicit notation is definitively not my cup of (Oolong <
http://en.wikipedia.org/wiki/Oolong>) tea.
> Therefore, I reiterate an old request <
https://github.com/tinkerpop/gremlin/issues/203> to use a more explicit .toPipe() instead of / in complement to ._() notation.
> Thanks,
> Pierre
>
>
> On Sun, Aug 28, 2011 at 2:23 PM, Marko Rodriguez <
okram...@gmail.com> wrote:
>>
>> Hi,
>> gremlin> g.v(1).class
>> ==>class com.tinkerpop.blueprints.pgm.impls.tg.TinkerVertex
>> gremlin> g.v(1,2).class
>> ==>class java.util.LinkedList
>> gremlin> g.idx(T.v)[[name:'josh']].class
>> ==>class com.tinkerpop.pipes.util.FluentPipeline
>> g.v() are not pipelines. I can make g.v(1,2) a pipeline... ? .. .? . ... The reason I didn't was for stuff like this:
>> g.v(1).out.out.except(g.v(2,3,4)).in
>> In other words, g.v() is just a "getter" of vertices, not a pipeline construct.
>> Marko.
>>
http://markorodriguez.com <
http://markorodriguez.com>
>> On Aug 28, 2011, at 1:33 AM, Pierre De Wilde wrote:
>>
>> Hey,
>> Cool.
>> Why g.v(id,id) does return LinkedList instead of FluentPipeline ?
>> g.v(1).out but g.v(1,2)._().out but g.idx(T.v)[[name:'josh']].out
>> Thanks,
>> Pierre
>>
>> On Sat, Aug 27, 2011 at 5:59 PM, James Thornton <
james.t...@gmail.com> wrote:
>>>
>>> > If you pass in one id (e.g. g.v(1)), you will get back a single element.
>>> > If you pass in more than one id (e.g. g.v(1,2)), you will get back a list of elements.
>>> > This has been pushed to GitHub in Gremlin 1.3-SNAPSHOT.
>>> That was fast! :) Thanks man.
>>> - James
>>
>
>
--
Cheers,
/peter neubauer
GTalk: neubauer.peter
Skype peter.neubauer
Phone +46 704 106975
LinkedIn
http://www.linkedin.com/in/neubauer
Twitter
http://twitter.com/peterneubauerhttp://www.neo4j.org - Your high performance graph database.
http://startupbootcamp.org/ - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.