thank you Luigi!

On Friday, 20 February 2015 09:34:02 UTC, Luigi Dell'Aquila wrote:
>
> Hi Stefan,
>
> there is no explicit support to this (you can open a feature request on 
> the issue tracker if you want), but there is a work-around to obtain this 
> information:
>
> OrientVertex v = ...
> ODocument doc = v.getRecord();
> String fieldNames = doc.fieldNames();
> List<String> edgeClassNames = new ArrayList<String>();
> for(String field:fieldNames){
>    if(field.startsWith(OrientBaseGraph.CONNECTION_OUT){
>       
> edgeClassNames.add(field.substring(OrientBaseGraph.CONNECTION_OUT.length())); 
>     
>    }
>    field.startsWith(OrientBaseGraph.CONNECTION_IN){
>       
> edgeClassNames.add(field.substring(OrientBaseGraph.CONNECTION_IN.length()));
>    }
> }
>
> (I didn't try out this code, maybe there are some typos ;-) )
>
> Thanks
>
> Luigi
>
>
> 2015-02-20 10:18 GMT+01:00 <[email protected] <javascript:>>:
>
>>
>> a bump and a smile
>>
>>
>>
>> On Thursday, 19 February 2015 13:11:11 UTC, [email protected] 
>> wrote:
>>>
>>> Hi,
>>>
>>> The Java API has a handy count edges by type function: 
>>> .countEdges(Direction.IN, Label)
>>>
>>> Is there a function that allows me to the a list of possible labels? 
>>> Something like String[] getEdgeTypes(Direction)
>>>
>>> Regards,
>>>  -Stefan
>>>
>>  -- 
>>
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
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/d/optout.

Reply via email to