You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by michael campbell <mi...@dsl.pipex.com> on 2014/03/27 15:50:30 UTC

date time in tuple

How do you put a datetime, let's say a jodatime datetime value, in a tuple? 

How do you get a datetime out of a tuple, what sort of method corresponds to tuple.getLongByField for a datetime?

Michael Campbell

-- 



Re: date time in tuple

Posted by Adam Lewis <ma...@adamlewis.com>.
>
> Also it might be worth reading:
> https://github.com/nathanmarz/storm/wiki/Serialization


After which you'll seek out this library:
https://github.com/magro/kryo-serializers


On Thu, Mar 27, 2014 at 11:09 AM, Dan Guja <da...@gmail.com> wrote:

> Also it might be worth reading:
> https://github.com/nathanmarz/storm/wiki/Serialization
>
>
> On Thu, Mar 27, 2014 at 9:01 AM, Dan Guja <da...@gmail.com> wrote:
>
>> Try this:
>> (DateTime)tuple.getValueByField("myDateTimeFieldName");
>>
>>
>> On Thu, Mar 27, 2014 at 8:50 AM, michael campbell <
>> michael.campbell@dsl.pipex.com> wrote:
>>
>>>
>>> How do you put a datetime, let's say a jodatime datetime value, in a
>>> tuple?
>>>
>>> How do you get a datetime out of a tuple, what sort of method
>>> corresponds to tuple.getLongByField for a datetime?
>>>
>>> Michael Campbell
>>>
>>> --
>>>
>>>
>>>
>>
>

Re: date time in tuple

Posted by Dan Guja <da...@gmail.com>.
Also it might be worth reading:
https://github.com/nathanmarz/storm/wiki/Serialization


On Thu, Mar 27, 2014 at 9:01 AM, Dan Guja <da...@gmail.com> wrote:

> Try this:
> (DateTime)tuple.getValueByField("myDateTimeFieldName");
>
>
> On Thu, Mar 27, 2014 at 8:50 AM, michael campbell <
> michael.campbell@dsl.pipex.com> wrote:
>
>>
>> How do you put a datetime, let's say a jodatime datetime value, in a
>> tuple?
>>
>> How do you get a datetime out of a tuple, what sort of method corresponds
>> to tuple.getLongByField for a datetime?
>>
>> Michael Campbell
>>
>> --
>>
>>
>>
>

Re: date time in tuple

Posted by Dan Guja <da...@gmail.com>.
Try this:
(DateTime)tuple.getValueByField("myDateTimeFieldName");


On Thu, Mar 27, 2014 at 8:50 AM, michael campbell <
michael.campbell@dsl.pipex.com> wrote:

>
> How do you put a datetime, let's say a jodatime datetime value, in a tuple?
>
> How do you get a datetime out of a tuple, what sort of method corresponds
> to tuple.getLongByField for a datetime?
>
> Michael Campbell
>
> --
>
>
>