public final class ToItemPrefsMapper extends ToEntityPrefsMapper
Intended for use with TextInputFormat;
accepts line number / line pairs as
LongWritable/Text pairs.
Each line is assumed to be of the form userID,itemID,preference, or userID,itemID.
Outputs the user ID as a VarLongWritable mapped to the item ID and preference as a
EntityPrefWritable.
RATING_SHIFT, TRANSPOSE_USER_ITEM| Constructor and Description |
|---|
ToItemPrefsMapper() |
map, setupCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.