Code example for DataOutput

Methods: writeLong, writeUTF

0
	} 
 
	@Override 
	public void write(DataOutput out) throws IOException {
 
		out.writeUTF(Group);
		out.writeLong(this.Timestamp);
	} 
 
	@Override 
	public int compareTo(TimeseriesKey other) {
 
		if (this.Group.compareTo(other.Group) != 0) {
			return this.Group.compareTo(other.Group);
		} else if (this.Timestamp != other.Timestamp) {
			return Timestamp < other.Timestamp ? -1 : 1;
		} else { 
			return 0; 
		} 
 
	}