public static class KNN.TextWithDistance extends java.lang.Object implements java.lang.Cloneable, TextSerializable, java.lang.Comparable<KNN.TextWithDistance>
| Constructor and Description |
|---|
KNN.TextWithDistance() |
| Modifier and Type | Method and Description |
|---|---|
protected KNN.TextWithDistance |
clone() |
int |
compareTo(KNN.TextWithDistance o) |
boolean |
equals(java.lang.Object obj) |
void |
fromText(Text t)
Retrieve information from the given text.
|
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
java.lang.String |
toString() |
Text |
toText(Text t)
Store current object as string in the given text appending text already there.
|
void |
write(java.io.DataOutput out) |
public void write(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic Text toText(Text t)
TextSerializabletoText in interface TextSerializablepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void fromText(Text t)
TextSerializablefromText in interface TextSerializablepublic java.lang.String toString()
toString in class java.lang.Objectprotected KNN.TextWithDistance clone()
clone in class java.lang.Objectpublic int compareTo(KNN.TextWithDistance o)
compareTo in interface java.lang.Comparable<KNN.TextWithDistance>