I searched this forum for 'time series' and found three unanswered about 
how to create a time series for timestamped data as described in 
http://orientdb.com/docs/last/orientdb.wiki/Time-series-use-case.html

I daresay this is a common scenario and many are using it, however it is a 
difficult concept for newbies to grasp!

Via the java API I have created five classes, to capture years to hours and 
point to my log entry record...

        //log entry
        OrientVertexType logentry= graph.getVertexType("logentry");
        if (logentry== null)
        {
            logentry= graph.createVertexType("logentry");
            //bunch of other properties 
        }
        
        //hour link logentry
        OrientVertexType hour = graph.getVertexType("hour");
        if (hour == null)
        {
            hour = graph.createVertexType("hour");
            hour.createProperty("coraxhits", OType.LINKMAP, logentry);
        }
        
        //day link hour
        OrientVertexType day = graph.getVertexType("day");
        if (day == null)
        {
            day = graph.createVertexType("day");
            day.createProperty("hour", OType.LINKMAP, hour);
        }
        
        //month link day
        OrientVertexType month = graph.getVertexType("month");
        if (month == null)
        {
            month = graph.createVertexType("month");
            month.createProperty("day", OType.LINKMAP, day);
        }
        
        //year link month
        OrientVertexType year = graph.getVertexType("year");
        if (year == null)
        {
            year = graph.createVertexType("year");
            year.createProperty("month", OType.LINKMAP, month);
        }

Next I have written simple loops to generate instances of the year, month, 
day and hour verticies (12 x month 31 x days etc...)

But now how do I enter a logentry?

-- 

--- 
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