Hi Lasantha,

there is no issue using int instead of byte and short for calculation
purposes. but my concern is also the size of the event. In DAS, if we
choose to persist the streams, then using 32 bits for 8 bits will be
inefficient IMO.

so, +1 for introducing 8 & 16 bit data types as a future improvement.

cheers

On Mon, Jun 8, 2015 at 11:55 AM, Lasantha Fernando <[email protected]>
wrote:

> Hi Niranda,
>
> On 8 June 2015 at 10:50, Mohanadarshan Vivekanandalingam <[email protected]>
> wrote:
>
>>
>>
>> On Mon, Jun 8, 2015 at 9:21 AM, Niranda Perera <[email protected]> wrote:
>>
>>> Hi suho,
>>>
>>> I'm thinking about byte (8 bit) and short (16 bit) data types.
>>>
>>>
> Is the requirement to simply transfer data, a number in byte or short Java
> primitives? I thought your requirement was to transfer data as a Java
> object or as a byte serialization. Sorry about the confusion.
>
> If you simply need to transfer data as a number, but concerned about using
> an int or long because of the additional capacity, then as Mohan said, an
> int should suffice for most use cases. But IMHO, still having at least byte
> type might be useful if we want to conserve the size of events being
> transferred. i.e. it might be useful in specific use cases where a large no
> of attributes are being sent in an event which only need 8-bits to
> represent that number. Some other event processing systems do support byte
> as a possible data type [1].
>
> @Suho, Mohan wdyt? Won't we have some event size reduction for specific
> use cases if byte type was introduced, maybe as a future improvement?
>
> [1]
> http://www.espertech.com/esper/release-5.2.0/esper-reference/html/epl_clauses.html#epl-syntax-datatype
>
> Thanks,
> Lasantha
>
>
>>
>> @Niranda, I don't think we have to worry much about this..  Better go
>> with Int (or long) data types..
>>
>>
>>
>>>
>>> On Mon, Jun 8, 2015 at 3:21 AM, Sriskandarajah Suhothayan <[email protected]
>>> > wrote:
>>>
>>>>
>>>>
>>>> On Sun, Jun 7, 2015 at 5:46 PM, Lasantha Fernando <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi Niranda,
>>>>>
>>>>> Do you mean transferring data as bytes or simply in binary form?
>>>>>
>>>>> I think there were some discussions earlier around adding the
>>>>> capability to send attributes in binary form. Actually, I went through the
>>>>> code in new Siddhi-3.0.0 and it seems there is support for 'Object' types.
>>>>> This can be used to pass objects through Siddhi, though we don't have
>>>>> support in Siddhi to do any manipulations on the object itself. But not
>>>>> sure whether this satisfies your requirement to have it in byte form. Can
>>>>> you elaborate on any use case you have in mind that uses byte data type?
>>>>>
>>>>> Anyway, there is no support for byte form at databridge level AFAIK.
>>>>>
>>>>> +1 to add this capability for databridge. Can you start a thread in
>>>>> arch@ list about adding byte as a supported data type for databridge
>>>>> also mentioning the usecase as well?
>>>>>
>>>>> Thanks,
>>>>> Lasantha
>>>>>
>>>>> On 7 June 2015 at 01:18, Niranda Perera <[email protected]> wrote:
>>>>>
>>>>>> Thanks Lasantha.
>>>>>>
>>>>>> so we are not supporting 8bit or 16 bit data types, isnt it?
>>>>>>
>>>>>> dont you think we should add that to databridge?
>>>>>>
>>>>> Was this necessary ? Whats the respective Java type this maps to ?
>>>>
>>>> Suho
>>>>
>>>>>
>>>>>> On Sat, Jun 6, 2015 at 2:29 PM, Lasantha Fernando <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Niranda,
>>>>>>>
>>>>>>> Those would be the same data types as supported by databridge
>>>>>>> component. i.e. namely
>>>>>>>
>>>>>>>
>>>>>>>    - int
>>>>>>>    - long
>>>>>>>    - float
>>>>>>>    - double
>>>>>>>    - string
>>>>>>>    - bool
>>>>>>>
>>>>>>>
>>>>>>> But I think this is not mentioned anywhere in our documentation.
>>>>>>> Added these types to the page about stream definitions in [1].
>>>>>>>
>>>>>>> [1] https://docs.wso2.com/display/CEP400/Event+Stream+Definitions
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Lasantha
>>>>>>>
>>>>>>> On 6 June 2015 at 11:25, Niranda Perera <[email protected]> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> can you please point me to a documentation page where I could find
>>>>>>>> the data types supported by Siddhi QL?
>>>>>>>>
>>>>>>>> thanks
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Niranda Perera*
>>>>>>>> Software Engineer, WSO2 Inc.
>>>>>>>> Mobile: +94-71-554-8430
>>>>>>>> Twitter: @n1r44 <https://twitter.com/N1R44>
>>>>>>>> https://pythagoreanscript.wordpress.com/
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Dev mailing list
>>>>>>>> [email protected]
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Lasantha Fernando*
>>>>>>> Senior Software Engineer - Data Technologies Team
>>>>>>> WSO2 Inc. http://wso2.com
>>>>>>>
>>>>>>> email: [email protected]
>>>>>>> mobile: (+94) 71 5247551
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Niranda Perera*
>>>>>> Software Engineer, WSO2 Inc.
>>>>>> Mobile: +94-71-554-8430
>>>>>> Twitter: @n1r44 <https://twitter.com/N1R44>
>>>>>> https://pythagoreanscript.wordpress.com/
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Lasantha Fernando*
>>>>> Senior Software Engineer - Data Technologies Team
>>>>> WSO2 Inc. http://wso2.com
>>>>>
>>>>> email: [email protected]
>>>>> mobile: (+94) 71 5247551
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *S. Suhothayan*
>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>>>  *WSO2 Inc. *http://wso2.com
>>>> * <http://wso2.com/>*
>>>> lean . enterprise . middleware
>>>>
>>>>
>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter:
>>>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in:
>>>> http://lk.linkedin.com/in/suhothayan 
>>>> <http://lk.linkedin.com/in/suhothayan>*
>>>>
>>>
>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 <https://twitter.com/N1R44>
>>> https://pythagoreanscript.wordpress.com/
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Senior Software Engineer,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com <http://wso2.com> *
>> *lean.enterprise.middleware.*
>>
>> email: [email protected]
>> phone:(+94) 771117673
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lasantha Fernando*
> Senior Software Engineer - Data Technologies Team
> WSO2 Inc. http://wso2.com
>
> email: [email protected]
> mobile: (+94) 71 5247551
>



-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 <https://twitter.com/N1R44>
https://pythagoreanscript.wordpress.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to