Code example for DataInput

Methods: readLong, readUTF

0
	} 
 
	@Override 
	public void readFields(DataInput in) throws IOException {
 
		this.Group = in.readUTF();
		this.Timestamp = in.readLong();
 
	} 
 
	@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) {