Hi Fabrizio,
please open a new issue, but in the meanwhile you could do:
graph.command(
new OSQLAsynchQuery<Vertex>("select bothE() from MyVertex", new
OCommandResultListener() {
public boolean result(Object iRecord) {
System.out.println("E " + iRecord);
return true;
}
public void end() {
// TODO Auto-generated method stub
}
})).execute();
Lvc@
On 7 February 2014 13:25, Andrey Lomakin <[email protected]> wrote:
> Do not think so.
> Could you open issue.
>
> BTW issue with not closed connections which you opened is fixed.
>
>
> On Fri, Feb 7, 2014 at 2:15 PM, Fabrizio Fortino <
> [email protected]> wrote:
>
>> Hi,
>>
>> I did another test using OSQLSynchQuery instead of OSQLAsynchQuery and it
>> works: the edges are now returned as expected.
>>
>> Is this the right behavior? Should I open an issue?
>>
>> On Thursday, February 6, 2014 9:08:24 AM UTC, Andrey Lomakin wrote:
>>
>>> Hi Fabrizio,
>>> It is possible, but we need more information, could you open issue and
>>> send us test case or database to check it.
>>>
>>>
>>>
>>> On Thu, Feb 6, 2014 at 11:03 AM, Fabrizio Fortino <
>>> [email protected]> wrote:
>>>
>>>> Additional note: if I execute
>>>>
>>>> System.out.println(doc.countEdges(Direction.OUT, "has"));
>>>>
>>>> It prints the right number of edges. Could it be a bug on getEdges()
>>>> method?
>>>>
>>>>
>>>>
>>>> On Wednesday, February 5, 2014 2:22:55 PM UTC, Fabrizio Fortino wrote:
>>>>>
>>>>> Hi guys,
>>>>>
>>>>> I have a graph database with Vertices and Edges. When I try to execute
>>>>> the following code:
>>>>>
>>>>> graph.command(
>>>>> new OSQLAsynchQuery<Vertex>("select from MyVertex", new
>>>>> OCommandResultListener() {
>>>>> public boolean result(Object iRecord) {
>>>>> Vertex doc = graph.getVertex(iRecord);
>>>>> System.out.println("V " + doc);
>>>>> for (Edge e : doc.getEdges(Direction.BOTH)) {
>>>>> System.out.println("E " + e);
>>>>> }
>>>>> return true;
>>>>> }
>>>>>
>>>>> public void end() {
>>>>> // TODO Auto-generated method stub
>>>>> }
>>>>> })).execute();
>>>>>
>>>>>
>>>>> I cannot see any edge printed. Any idea?
>>>>>
>>>>> Thanks,
>>>>> Fabrizio
>>>>>
>>>> --
>>>>
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "OrientDB" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Andrey Lomakin.
>>>
>>> Orient Technologies
>>> the Company behind OrientDB
>>>
>>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "OrientDB" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Best regards,
> Andrey Lomakin.
>
> Orient Technologies
> the Company behind OrientDB
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.