public final class EntityPrefWritable extends VarLongWritable implements Cloneable
Writable encapsulating an item ID and a preference value.| Constructor and Description |
|---|
EntityPrefWritable() |
EntityPrefWritable(EntityPrefWritable other) |
EntityPrefWritable(long itemID,
float prefValue) |
| Modifier and Type | Method and Description |
|---|---|
EntityPrefWritable |
clone() |
boolean |
equals(Object o) |
long |
getID() |
float |
getPrefValue() |
int |
hashCode() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
compareTo, get, setpublic EntityPrefWritable()
public EntityPrefWritable(long itemID,
float prefValue)
public EntityPrefWritable(EntityPrefWritable other)
public long getID()
public float getPrefValue()
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class VarLongWritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class VarLongWritableIOExceptionpublic int hashCode()
hashCode in class VarLongWritablepublic boolean equals(Object o)
equals in class VarLongWritablepublic String toString()
toString in class VarLongWritablepublic EntityPrefWritable clone()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.