public void readFields(DataInput in) throws IOException {
this.cfBytes = Bytes.readByteArray(in);
this.qualifierBytes = Bytes.readByteArray(in);
this.type = ValueType.valueOf(Bytes.toString(Bytes.readByteArray(in)));
this.maxValueLength = in.readInt();
PartitionType p = PartitionType.valueOf(in.readUTF());
if (p.equals(PartitionType.SEPARATOR)) {
valuePartition = new SeparatorPartition();
} else if (p.equals(PartitionType.SPATIAL)) {
valuePartition = new SpatialPartition();
}
if (valuePartition != null) {
valuePartition.readFields(in);
}