Hi Andrey;
Thank you for reply.
Sorry for not being  clear with my question.
I understand how to create object form JSON. My question was specifically 
regarding this tutorial:
https://github.com/orientechnologies/orientdb/wiki/Time-series-use-case<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Forientechnologies%2Forientdb%2Fwiki%2FTime-series-use-case&sa=D&sntz=1&usg=AFQjCNFUWha6O1m3qSSNzPOIwZg-xKRLLg>
I am trying to understand how it works. Do you, guys, have a  complete Java 
API code for that example?
Seems like tutorial starts with JSON code where date is a long number ( I 
assume it is in milliseconds???) , but then tutorial is talking about 
creating tree with Month, Day,... Then you connect log record with the 
right Calendar vertex. How this connection happens? 
Most likely I am  missing something.  I would like to understand that 
example very well since this is most likely we would need to implement in 
our product.

-galina  


On Wednesday, April 2, 2014 7:49:56 AM UTC-7, Andrey Lomakin wrote:
>
> Hi Galina,
> Sure you associate document with class during document save.
> Like this 
> https://github.com/orientechnologies/orientdb/wiki/Document-Database#introduction.
>
> I think you wish to create document from JSON it can be done using 
> following code:
>
> ODocument doc = new ODocument("Person");
>
> document.fromJSON("jsonString");
>
> document.save();
>
>
>
> On Tue, Apr 1, 2014 at 8:33 PM, galina <[email protected]<javascript:>
> > wrote:
>
>> I came across this link and wondering if someone could explain  it to me:
>>
>> https://github.com/orientechnologies/orientdb/wiki/Time-series-use-case<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Forientechnologies%2Forientdb%2Fwiki%2FTime-series-use-case&sa=D&sntz=1&usg=AFQjCNFUWha6O1m3qSSNzPOIwZg-xKRLLg>
>>
>> I am new to OrientDB and NoSQL in general.  "Time series" post is talking 
>> about generating JSON Log record where date stored as "date" : 
>> 12293289328932.
>> Then you created classes for Year, Month, Day,... How that record got 
>> associated to classes? Do you  have more code samples? I understood queries 
>> very well, but missed data-to-class association part. Maybe you can direct 
>> me to another link, which explains that?
>>  
>> -- 
>>
>> --- 
>> 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.
>>
>
>
>
> -- 
> 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/d/optout.

Reply via email to