Yes, I am using the exact time stamp, yet I am creating an event with a
brand new eventId. Any thoughts?

On Wed, Sep 28, 2016 at 5:15 AM, Kenneth Chan <kenn...@apache.org> wrote:

> when you update event with the same eventId, does the new event have the
> same eventTime?
>
> the eventTime is also used as Hbase's cell timestamp (versions)
> https://github.com/apache/incubator-predictionio/blob/
> develop/data/src/main/scala/org/apache/predictionio/data/
> storage/hbase/HBEventsUtil.scala#L164
>
>
> On Tue, Sep 27, 2016 at 4:44 AM, Hasan Can Saral <hasancansa...@gmail.com>
> wrote:
>
> > Hi all,
> >
> > I have a question regarding the RowKey generation in eventToPut in
> > HBEventsUtil. If that is the wrong place to ask, please correct me.
> >
> > I started browsing the source code to see if I can implement updating of
> > events with HTTP put requests in EventServer.
> >
> > So basically in HBLEvents, eventsToPut in HBEventsUtil is called an
> within
> > eventsToPut, which generates a unique RowKey object if it is None.
> >
> > But when the event.eventId.map is there, it simply proceeds with
> > RowKey(id). Then regarding this <http://stackoverflow.com/a/13685752>,
> the
> > value should be updated.
> >
> > Hence, if I include "eventId" key in the JSON I post to events.json, I
> > understand that the document/value in HBase should be updated.
> >
> > However, I am receiving a new document/value with a different key than
> the
> > one I post, which means I am missing something. I would appreciate if you
> > could help me with it.
> >
> > Thanks,
> > Hasan
> >
> > --
> >
> > Hasan Can Saral
> > hasancansa...@gmail.com
> >
>



-- 

Hasan Can Saral
hasancansa...@gmail.com

Reply via email to