public class PointWritable
extends java.lang.Object
implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
PointWritable()
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getOrds()
Gets the point ordinates array
|
void |
readFields(java.io.DataInput input) |
void |
setOrds(double[] ords)
Sets the point ordinates
|
java.lang.String |
toString() |
void |
write(java.io.DataOutput output) |
public void setOrds(double[] ords)
ords - an ordinates arraypublic double[] getOrds()
public void readFields(java.io.DataInput input)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOException
public void write(java.io.DataOutput output)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object