You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@apex.apache.org by Aurel Sandu <as...@gmail.com> on 2017/05/15 13:24:46 UTC

Sales Dimensions

I would like to build this app
http://docs.datatorrent.com/tutorials/salesdimensions/
But I have an issue , in SalesDemo.java I should import
org.apache.apex.malhar.lib.dimensions.DimensionsEvent.Aggregate; (on line
12)
and  org.apache.apex.malhar.lib.dimensions.DimensionsEvent.InputEvent; (on
line 13) .
These 2 classes are nested classes to DimensionsEvent and when I compile
this class compiler (lauched inside maven) throw an error : package
org.apex.malhar.lib.dimensions.DimensionsEvent does not exist  and it's
right there is not a such package - DimensonsEvent it's a class not a
package and Aggregate and InputEvent are nested classes
Pllease see the source for  the source here
https://github.com/DataTorrent/examples/blob/master/dt-demo/dimensions/src/main/java/com/datatorrent/demos/dimensions/sales/generic/SalesDemo.java
How should import (and reference in code) nested classes?
Many thanks,
Aurel

Re: Sales Dimensions

Posted by Aurel Sandu <as...@gmail.com>.
Thanks Amol . I hope to receive a feedback on my issue
Aurel
Pe 16 mai 2017 23:25, "amol kekre" <am...@gmail.com> a scris:

>
> Aurel,
> I am moving this thread to dt-users@googlegroups.com, as this is
> DataTorrent specific question.
>
> Thks,
> Amol
>
> On Mon, May 15, 2017 at 6:24 AM, Aurel Sandu <as...@gmail.com> wrote:
>
>> I would like to build this app   http://docs.datatorrent.com/tu
>> torials/salesdimensions/
>> But I have an issue , in SalesDemo.java I should import
>> org.apache.apex.malhar.lib.dimensions.DimensionsEvent.Aggregate; (on
>> line 12)
>> and  org.apache.apex.malhar.lib.dimensions.DimensionsEvent.InputEvent;
>> (on line 13) .
>> These 2 classes are nested classes to DimensionsEvent and when I compile
>> this class compiler (lauched inside maven) throw an error : package
>> org.apex.malhar.lib.dimensions.DimensionsEvent does not exist  and it's
>> right there is not a such package - DimensonsEvent it's a class not a
>> package and Aggregate and InputEvent are nested classes
>> Pllease see the source for  the source here
>> https://github.com/DataTorrent/examples/blob/master/dt-demo/
>> dimensions/src/main/java/com/datatorrent/demos/dimensions/sa
>> les/generic/SalesDemo.java
>> How should import (and reference in code) nested classes?
>> Many thanks,
>> Aurel
>>
>>
>>
>

Re: Sales Dimensions

Posted by amol kekre <am...@gmail.com>.
Aurel,
I am moving this thread to dt-users@googlegroups.com, as this is
DataTorrent specific question.

Thks,
Amol

On Mon, May 15, 2017 at 6:24 AM, Aurel Sandu <as...@gmail.com> wrote:

> I would like to build this app   http://docs.datatorrent.com/
> tutorials/salesdimensions/
> But I have an issue , in SalesDemo.java I should import
> org.apache.apex.malhar.lib.dimensions.DimensionsEvent.Aggregate; (on line
> 12)
> and  org.apache.apex.malhar.lib.dimensions.DimensionsEvent.InputEvent;
> (on line 13) .
> These 2 classes are nested classes to DimensionsEvent and when I compile
> this class compiler (lauched inside maven) throw an error : package
> org.apex.malhar.lib.dimensions.DimensionsEvent does not exist  and it's
> right there is not a such package - DimensonsEvent it's a class not a
> package and Aggregate and InputEvent are nested classes
> Pllease see the source for  the source here
> https://github.com/DataTorrent/examples/blob/
> master/dt-demo/dimensions/src/main/java/com/datatorrent/
> demos/dimensions/sales/generic/SalesDemo.java
> How should import (and reference in code) nested classes?
> Many thanks,
> Aurel
>
>
>