Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion [Gremlin/Pipes] Convert a "SQL" query to Gremlin

Received: by 10.68.191.225 with SMTP id hb1mr3717848pbc.5.1336324208765;
        Sun, 06 May 2012 10:10:08 -0700 (PDT)
X-BeenThere: gremlin-users@googlegroups.com
Received: by 10.68.116.169 with SMTP id jx9ls11400876pbb.5.gmail; Sun, 06 May
 2012 10:10:08 -0700 (PDT)
Received: by 10.68.203.226 with SMTP id kt2mr1171125pbc.6.1336324208415;
        Sun, 06 May 2012 10:10:08 -0700 (PDT)
Date: Sun, 6 May 2012 10:10:07 -0700 (PDT)
From: Rob Elsner <thatsnotri...@gmail.com>
To: gremlin-users@googlegroups.com
Message-ID: <20097018.81.1336324207727.JavaMail.geo-discussion-forums@pbbof7>
In-Reply-To: <E2503BBB-A3CC-43E3-9144-2723D752753C@gmail.com>
References: <3651592.25.1336170716988.JavaMail.geo-discussion-forums@pbcmf4> <CAJPJ9SjdZVXwW6eDMwqiPVVQ4jRH62bUNQGaBp4aDZT79Ri12Q@mail.gmail.com> <15584859.252.1336318589221.JavaMail.geo-discussion-forums@pbvd8>
 <E2503BBB-A3CC-43E3-9144-2723D752753C@gmail.com>
Subject: Re: [TinkerPop] [Gremlin/Pipes] Convert a "SQL" query to Gremlin
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_79_5160101.1336324207726"

------=_Part_79_5160101.1336324207726
Content-Type: multipart/alternative; 
	boundary="----=_Part_80_21177602.1336324207726"

------=_Part_80_21177602.1336324207726
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit


>
> Would people be interested in a blog post on Gremlin Java? What you can do 
> in Gremlin Groovy can be done in Gremlin Java with the only drawback being 
> that closures (e.g. filter{}) are represented as anonymous inner classes 
> (e.g. filter(new PipeFunction<Vertex,Boolean>() { public Boolean 
> compute(Vertex arg) { ... })).
>
The reason I like the Groovy way is because filter{} is so clean.  I'm 
trying to abstract the Groovy and graph traversal, something akin to 
Hibernate Criteria queries, where you can pass in a higher-level form the 
search criteria and this gets mapped on to the graph filtering functions 
Gremlin provides.
 
Rob

------=_Part_80_21177602.1336324207726
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote"><p>Would people be interested in a blog post on Gremlin Java? What you can do in Gremlin Groovy can be done in Gremlin Java with the only drawback being that closures (e.g. filter{}) are represented as anonymous inner classes (e.g. filter(new PipeFunction&lt;Vertex,Boolean&gt;() { public Boolean compute(Vertex arg) { ... })).<br></p></blockquote><div>The reason I like the Groovy way is because filter{} is so clean.&nbsp; I'm trying to abstract the Groovy and graph traversal, something akin to Hibernate Criteria queries, where you can pass in a higher-level form the search criteria and this gets mapped on to the graph filtering functions Gremlin provides.</div><div>&nbsp;</div><div>Rob</div>
------=_Part_80_21177602.1336324207726--

------=_Part_79_5160101.1336324207726--