mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MAHOUT-650) java.io.Serializable should be implemented by org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator
Date Mon, 04 Apr 2011 11:35:05 GMT

     [ https://issues.apache.org/jira/browse/MAHOUT-650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Owen updated MAHOUT-650:
-----------------------------

    Resolution: Won't Fix
        Status: Resolved  (was: Patch Available)

It's an easy change, sure, but I don't see why you would ever serialize an iterator? serializing
this means serializing the underlying array. If you just send the array, which you must anyway,
you can make a new iterator on it on the other side. In your code, just return long[] from
methods instead.

> 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

Mime
View raw message