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, set
public 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.Writable
write
in class VarLongWritable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class VarLongWritable
IOException
public int hashCode()
hashCode
in class VarLongWritable
public boolean equals(Object o)
equals
in class VarLongWritable
public String toString()
toString
in class VarLongWritable
public EntityPrefWritable clone()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.