Hi,
that example refers to the Document Database API you can get using:
ODatabaseDocumentTx db = graph.getRawGraph();
So you can do this:
OFunction citations =
graph.getRawGraph().getMetadata().getFunctionLibrary().getFunction("sum");
Lvc@
On 10 March 2014 22:06, prabhat <[email protected]> wrote:
>
> https://github.com/orientechnologies/orientdb/wiki/Functions
> Usage via Java API
>
>
> On Mon, Mar 10, 2014 at 8:32 PM, Luca Garulli <[email protected]> wrote:
>
>> Hi,
>> may you post the link to the non updated documentation?
>>
>> Lvc@
>>
>>
>>
>> On 10 March 2014 21:41, prabhat <[email protected]> wrote:
>>
>>> Thanks,
>>>
>>> Other question. How to get Functions.
>>> As per the documenttaion, this doesnt work
>>>
>>> OFunction citations =
>>> graph.getMetadata().getFunctionLibrary().getFunction("sum");
>>>
>>> Thanks
>>>
>>>
>>>
>>> On Mon, Mar 10, 2014 at 6:42 PM, Odysseas <[email protected]>wrote:
>>>
>>>> You should be able to do something like:
>>>>
>>>> graph.getTx().getRawGraph().declareIntent(new OIntentMassiveInsert());
>>>>
>>>>
>>>>
>>>> On Monday, March 10, 2014 4:50:07 AM UTC-4, Shishya wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> Is DelareIntent deprectaed in OrientGraphFactory?
>>>>>
>>>>> I have the following code from pre 1.7rc1, but not working any more.
>>>>>
>>>>>
>>>>> OrientGraphFactory graph = new OrientGraphFactory("remote:0.
>>>>> 0.0.0:2424/test","root","password");
>>>>> System.out.println("Connected");
>>>>> graph.declareIntent(new OIntentMassiveInsert());
>>>>> Map<String, Object> mymap = new HashMap<String, Object>();
>>>>> mymap.put("id" , "112");
>>>>> OrientVertex myv = graph.addVertex("class:myc", mymap);
>>>>> myv.save();
>>>>>
>>>>>
>>>>> Error is as follows.
>>>>>
>>>>>
>>>>> error: cannot find symbol
>>>>> graph.declareIntent(new OIntentMassiveInsert());
>>>>> ^
>>>>> symbol: method declareIntent(OIntentMassiveInsert)
>>>>> location: variable graph of type OrientGraphFactory
>>>>> error: cannot find symbol
>>>>> OrientVertex myv = graph.addVertex("class:myc", mymap);
>>>>> symbol: method addVertex(String,Map<String,Object>)
>>>>> location: variable graph of type OrientGraphFactory
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>
>>>> ---
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "OrientDB" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/orient-database/RJGCqIFNEdw/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>>
>>>> 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.
>>>
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "OrientDB" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/orient-database/RJGCqIFNEdw/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> 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.
>
--
---
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.