public final class RecommendedItemsWritable extends Object implements org.apache.hadoop.io.Writable
Writable
which encapsulates a list of RecommendedItem
s. This is the mapper (and reducer)
output, and represents items recommended to a user. The first item is the one whose estimated preference is
highest.Constructor and Description |
---|
RecommendedItemsWritable() |
RecommendedItemsWritable(List<RecommendedItem> recommended) |
Modifier and Type | Method and Description |
---|---|
List<RecommendedItem> |
getRecommendedItems() |
void |
readFields(DataInput in) |
void |
set(List<RecommendedItem> recommended) |
String |
toString() |
void |
write(DataOutput out) |
public RecommendedItemsWritable()
public RecommendedItemsWritable(List<RecommendedItem> recommended)
public List<RecommendedItem> getRecommendedItems()
public void set(List<RecommendedItem> recommended)
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.