Thanks for the response, Manuel.  But what I'm asking about here is a way
to _set_ a time when storing a preference into a DataModel (i.e. control
the value that'll subsequently be returned by the getPreferenceTime method).

Thanks,
Jamey

On Tue, Nov 29, 2011 at 10:41 AM, Manuel Blechschmidt <
manuel.blechschm...@gmx.de> wrote:

> Hi Jamey,
>
> On 29.11.2011, at 18:32, Jamey Wood wrote:
>
> > It seems a bit surprising that there is no method along these lines in
> > DataModel (or some subclass thereof):
> >
> >  setPreference(long userID, long itemID, float value, long time)
> >
> > Am I just overlooking something?
>
> Yes you do, here you go:
>
> https://builds.apache.org/job/Mahout-Quality/javadoc/org/apache/mahout/cf/taste/model/DataModel.html#getPreferenceTime(long,
> long)
>
> Actually this does not support multiple times like Reratings or multiple
> User Interactions. Nevertheless you get the preference time.
>
> > Are you always expected to just go in
> > "under the covers" of some DataModel's implementation details to do this
> > (such as a raw SQL insert for a JDBC-based DataModel)?
> >
> > Thanks,
> > Jamey
>
>
> /Manuel
>
> --
> Manuel Blechschmidt
> Dortustr. 57
> 14467 Potsdam
> Mobil: 0173/6322621
> Twitter: http://twitter.com/Manuel_B
>
>

Reply via email to