HI Puneet,

What are you trying to do in getAggregatedValue()? Is there any reason you
don't just want to return the current value of the aggregator (which is
what the default implementation does)?

Best,
Matthew

On Sat, Sep 20, 2014 at 6:25 AM, Puneet Agarwal <puagar...@yahoo.com> wrote:

> I have created my own aggregator, by extending the BasicAggregator.
>
> In this aggregator I have overridden following methods
>
> aggregate()
> createInitialValue()
> getAggregatedValue()
>
> (The documentation says that we need to implement aggregate and 
> createInitialValue
> methods only, if so, how and what will it return when getAggregatedValue()
> is called?)
>
> My main problems are:
>
> a. When I call the method getAggregatedValue() from the compute method of
> my vertex class, nothing gets returned
> b. When I call the method getAggregatedValue() from the compute method of
> my vertex class, aggregate() method of the aggregator class is getting
> called and it received the value returned by the method
> getAggregatedValue().
>
> am I missing something very basic here?
>
> Please Help
>
> Puneet Agarwal
> IIT Delhi
>

Reply via email to