Code example for DataOutput

Methods: writeDouble

0
	} 
 
	@Override 
	public void write(DataOutput out) throws IOException 
	{ 
		out.writeDouble(this.longitudex);
		out.writeDouble(this.latitudey);
	} 
 
	@Override 
	public int compareTo(SpatialWritable o) 
	{ 
		CoordinateWritable cw = (CoordinateWritable)o;
		return new Double(this.latitudey).compareTo(new Double(cw.latitudey));
	} 
 
	@Override 
	public SpatialType getType()  
	{ 
		return SpatialType.Coordinate; 
	}