You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "York, Brennon" <Br...@capitalone.com> on 2015/12/10 20:24:25 UTC

Stateful vs Stateless Operators

How does stateful vs stateless operation work with operators implementing a base class? For example, if I have operator A as an abstract class and marked as @Stateless, but then have operator B implement operator A and B is not stateless, what will the system do? Does it always take the implementing operator’s stateful vs stateless determination, does it take the base class, something else? Trying to understand and didn’t find any info on it at docs.datatorrent.com or in the codebase.
________________________________________________________

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.

Re: Stateful vs Stateless Operators

Posted by "York, Brennon" <Br...@capitalone.com>.
Perfect, exactly what I was looking for. Thanks Chandni!

On 12/10/15, 11:32 AM, "Chandni Singh" <ch...@datatorrent.com> wrote:

>The @Stateless attribute is not @Inherited.
>
>http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Inherited.ht
>ml
>
>This means that B (if not annotated with Stateless) will be considered
>stateful.
>
>Chandni
>
>
>On Thu, Dec 10, 2015 at 11:24 AM, York, Brennon
><Brennon.York@capitalone.com
>> wrote:
>
>> How does stateful vs stateless operation work with operators
>>implementing
>> a base class? For example, if I have operator A as an abstract class and
>> marked as @Stateless, but then have operator B implement operator A and
>>B
>> is not stateless, what will the system do? Does it always take the
>> implementing operator¹s stateful vs stateless determination, does it
>>take
>> the base class, something else? Trying to understand and didn¹t find any
>> info on it at docs.datatorrent.com or in the codebase.
>> ________________________________________________________
>>
>> The information contained in this e-mail is confidential and/or
>> proprietary to Capital One and/or its affiliates and may only be used
>> solely in performance of work or services for Capital One. The
>>information
>> transmitted herewith is intended only for use by the individual or
>>entity
>> to which it is addressed. If the reader of this message is not the
>>intended
>> recipient, you are hereby notified that any review, retransmission,
>> dissemination, distribution, copying or other use of, or taking of any
>> action in reliance upon this information is strictly prohibited. If you
>> have received this communication in error, please contact the sender and
>> delete the material from your computer.
>>

________________________________________________________

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.


Re: Stateful vs Stateless Operators

Posted by Thomas Weise <th...@datatorrent.com>.
The documents are all in markdown format. We are planning to move the
relevant subset to Apex in the near future. Until then, please submit your
changes here:

https://github.com/DataTorrent/docs

Thanks!



On Thu, Dec 10, 2015 at 12:31 PM, York, Brennon <Brennon.York@capitalone.com
> wrote:

> Did we solidify on a new docs format / code hosting? If so I¹d be happy to
> make a quick JIRA for this and submit the PR.
>
> On 12/10/15, 11:47 AM, "Thomas Weise" <th...@datatorrent.com> wrote:
>
> >We should document the annotation in the dev guide:
> >
> >http://docs.datatorrent.com/operator_development/
> >
> >
> >
> >On Thu, Dec 10, 2015 at 11:32 AM, Chandni Singh <ch...@datatorrent.com>
> >wrote:
> >
> >> The @Stateless attribute is not @Inherited.
> >>
> >>
> >>
> >>
> http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Inherited.h
> >>tml
> >>
> >> This means that B (if not annotated with Stateless) will be considered
> >> stateful.
> >>
> >> Chandni
> >>
> >>
> >> On Thu, Dec 10, 2015 at 11:24 AM, York, Brennon <
> >> Brennon.York@capitalone.com
> >> > wrote:
> >>
> >> > How does stateful vs stateless operation work with operators
> >>implementing
> >> > a base class? For example, if I have operator A as an abstract class
> >>and
> >> > marked as @Stateless, but then have operator B implement operator A
> >>and B
> >> > is not stateless, what will the system do? Does it always take the
> >> > implementing operator¹s stateful vs stateless determination, does it
> >>take
> >> > the base class, something else? Trying to understand and didn¹t find
> >>any
> >> > info on it at docs.datatorrent.com or in the codebase.
> >> > ________________________________________________________
> >> >
> >> > The information contained in this e-mail is confidential and/or
> >> > proprietary to Capital One and/or its affiliates and may only be used
> >> > solely in performance of work or services for Capital One. The
> >> information
> >> > transmitted herewith is intended only for use by the individual or
> >>entity
> >> > to which it is addressed. If the reader of this message is not the
> >> intended
> >> > recipient, you are hereby notified that any review, retransmission,
> >> > dissemination, distribution, copying or other use of, or taking of any
> >> > action in reliance upon this information is strictly prohibited. If
> >>you
> >> > have received this communication in error, please contact the sender
> >>and
> >> > delete the material from your computer.
> >> >
> >>
>
> ________________________________________________________
>
> The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The information
> transmitted herewith is intended only for use by the individual or entity
> to which it is addressed. If the reader of this message is not the intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, distribution, copying or other use of, or taking of any
> action in reliance upon this information is strictly prohibited. If you
> have received this communication in error, please contact the sender and
> delete the material from your computer.
>
>

Re: Stateful vs Stateless Operators

Posted by "York, Brennon" <Br...@capitalone.com>.
Did we solidify on a new docs format / code hosting? If so I¹d be happy to
make a quick JIRA for this and submit the PR.

On 12/10/15, 11:47 AM, "Thomas Weise" <th...@datatorrent.com> wrote:

>We should document the annotation in the dev guide:
>
>http://docs.datatorrent.com/operator_development/
>
>
>
>On Thu, Dec 10, 2015 at 11:32 AM, Chandni Singh <ch...@datatorrent.com>
>wrote:
>
>> The @Stateless attribute is not @Inherited.
>>
>>
>> 
>>http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Inherited.h
>>tml
>>
>> This means that B (if not annotated with Stateless) will be considered
>> stateful.
>>
>> Chandni
>>
>>
>> On Thu, Dec 10, 2015 at 11:24 AM, York, Brennon <
>> Brennon.York@capitalone.com
>> > wrote:
>>
>> > How does stateful vs stateless operation work with operators
>>implementing
>> > a base class? For example, if I have operator A as an abstract class
>>and
>> > marked as @Stateless, but then have operator B implement operator A
>>and B
>> > is not stateless, what will the system do? Does it always take the
>> > implementing operator¹s stateful vs stateless determination, does it
>>take
>> > the base class, something else? Trying to understand and didn¹t find
>>any
>> > info on it at docs.datatorrent.com or in the codebase.
>> > ________________________________________________________
>> >
>> > The information contained in this e-mail is confidential and/or
>> > proprietary to Capital One and/or its affiliates and may only be used
>> > solely in performance of work or services for Capital One. The
>> information
>> > transmitted herewith is intended only for use by the individual or
>>entity
>> > to which it is addressed. If the reader of this message is not the
>> intended
>> > recipient, you are hereby notified that any review, retransmission,
>> > dissemination, distribution, copying or other use of, or taking of any
>> > action in reliance upon this information is strictly prohibited. If
>>you
>> > have received this communication in error, please contact the sender
>>and
>> > delete the material from your computer.
>> >
>>

________________________________________________________

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.


Re: Stateful vs Stateless Operators

Posted by Thomas Weise <th...@datatorrent.com>.
We should document the annotation in the dev guide:

http://docs.datatorrent.com/operator_development/



On Thu, Dec 10, 2015 at 11:32 AM, Chandni Singh <ch...@datatorrent.com>
wrote:

> The @Stateless attribute is not @Inherited.
>
>
> http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Inherited.html
>
> This means that B (if not annotated with Stateless) will be considered
> stateful.
>
> Chandni
>
>
> On Thu, Dec 10, 2015 at 11:24 AM, York, Brennon <
> Brennon.York@capitalone.com
> > wrote:
>
> > How does stateful vs stateless operation work with operators implementing
> > a base class? For example, if I have operator A as an abstract class and
> > marked as @Stateless, but then have operator B implement operator A and B
> > is not stateless, what will the system do? Does it always take the
> > implementing operator’s stateful vs stateless determination, does it take
> > the base class, something else? Trying to understand and didn’t find any
> > info on it at docs.datatorrent.com or in the codebase.
> > ________________________________________________________
> >
> > The information contained in this e-mail is confidential and/or
> > proprietary to Capital One and/or its affiliates and may only be used
> > solely in performance of work or services for Capital One. The
> information
> > transmitted herewith is intended only for use by the individual or entity
> > to which it is addressed. If the reader of this message is not the
> intended
> > recipient, you are hereby notified that any review, retransmission,
> > dissemination, distribution, copying or other use of, or taking of any
> > action in reliance upon this information is strictly prohibited. If you
> > have received this communication in error, please contact the sender and
> > delete the material from your computer.
> >
>

Re: Stateful vs Stateless Operators

Posted by Chandni Singh <ch...@datatorrent.com>.
The @Stateless attribute is not @Inherited.

http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Inherited.html

This means that B (if not annotated with Stateless) will be considered
stateful.

Chandni


On Thu, Dec 10, 2015 at 11:24 AM, York, Brennon <Brennon.York@capitalone.com
> wrote:

> How does stateful vs stateless operation work with operators implementing
> a base class? For example, if I have operator A as an abstract class and
> marked as @Stateless, but then have operator B implement operator A and B
> is not stateless, what will the system do? Does it always take the
> implementing operator’s stateful vs stateless determination, does it take
> the base class, something else? Trying to understand and didn’t find any
> info on it at docs.datatorrent.com or in the codebase.
> ________________________________________________________
>
> The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The information
> transmitted herewith is intended only for use by the individual or entity
> to which it is addressed. If the reader of this message is not the intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, distribution, copying or other use of, or taking of any
> action in reliance upon this information is strictly prohibited. If you
> have received this communication in error, please contact the sender and
> delete the material from your computer.
>