You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Manuel Blechschmidt (JIRA)" <ji...@apache.org> on 2011/04/04 16:18:05 UTC

[jira] [Commented] (MAHOUT-650) java.io.Serializable should be implemented by org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

    [ https://issues.apache.org/jira/browse/MAHOUT-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015429#comment-13015429 ] 

Manuel Blechschmidt commented on MAHOUT-650:
--------------------------------------------

Hi Sean,
actually the SemRecSysDataModelBean implements the DataModel interface. This can be seen in the UML Diagram. Therefore it is returning a LongPrimitiveArrayIterator.

Serializing the underlying array in case of a remote call is completely ok with me. I need this for testing purposes. At the moment I have one DataModel implementation and I have one testing class but in further research I want to blend multiple DataModels into each other.

See Image.

It would help me a lot if I would be able to make test cases for all these models.

/Manuel



> java.io.Serializable should be implemented by org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MAHOUT-650
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-650
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Collaborative Filtering
>    Affects Versions: 0.4
>         Environment: Mac OS X 10.6, Java EE 6, EJB 3.1, Glassfish 3.0.1
>            Reporter: Manuel Blechschmidt
>            Assignee: Sean Owen
>            Priority: Minor
>              Labels: datamodel, ejb, taste
>         Attachments: PatchLongPrimitiveArrayIteratorSerializable.patch, RecommenderServices.png, SemRecSysDataModelBean.java, SemRecSysDataModelTest.java
>
>
> I am using Mahout in a Java EE 6 application. I implemented a DataModel as an EJB 3.1 Singelton Service Bean. I wanted to write some test cases but unfortunately some of the classes of Taste are not serializable.
> At the moment LongPrimitiveArrayIterator stops my test cases from working.
> See attached patch, files and images for details

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira